mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-23 03:32:32 +00:00
Reverses mouse buttons.
So I can now navigate the disk-less GEM desktop and click on things.
This commit is contained in:
parent
cbf25a16dc
commit
e1dc3b1915
@ -237,7 +237,7 @@ int IntelligentKeyboard::get_number_of_buttons() {
|
||||
}
|
||||
|
||||
void IntelligentKeyboard::set_button_pressed(int index, bool is_pressed) {
|
||||
const auto mask = 1 << index;
|
||||
const auto mask = 1 << (index ^ 1); // The primary button is b1; the secondary is b0.
|
||||
if(is_pressed) {
|
||||
mouse_button_state_ |= mask;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user