1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-04 18:29:40 +00:00

Reverses mouse buttons.

So I can now navigate the disk-less GEM desktop and click on things.
This commit is contained in:
Thomas Harte 2019-11-02 21:38:57 -04:00
parent cbf25a16dc
commit e1dc3b1915

View File

@ -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 {