partially satisfying the cpplint complaints

pull/365/head
Jesse Vincent 7 years ago
parent 20b52f91bf
commit 78b3739a4e
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -90,8 +90,9 @@ Key MouseKeys_::eventHandlerHook(Key mappedKey, byte row, byte col, uint8_t keyS
if (key_is_pressed(keyState)) {
if (mappedKey.keyCode & KEY_MOUSE_WHEEL) {
scrollWheel(mappedKey.keyCode);
} else
} else {
mouseMoveIntent |= mappedKey.keyCode;
}
}
} else if (key_toggled_on(keyState)) {
if (mappedKey.keyCode & KEY_MOUSE_WARP && mappedKey.flags & IS_MOUSE_KEY) {

@ -1,11 +1,11 @@
#pragma once
#define IS_MOUSE_KEY B00010000
#define IS_MOUSE_KEY B00010000
// Synthetic, not internal
#define KEY_MOUSE_BTN_L 0x01 // Synthetic key
#define KEY_MOUSE_BTN_M 0x02 // Synthetic key
#define KEY_MOUSE_BTN_R 0x03 // Synthetic key
#define KEY_MOUSE_BTN_L 0x01 // Synthetic key
#define KEY_MOUSE_BTN_M 0x02 // Synthetic key
#define KEY_MOUSE_BTN_R 0x03 // Synthetic key
#define KEY_MOUSE_UP B0000001

@ -20,7 +20,6 @@ MouseWrapper_::MouseWrapper_(void) {
void MouseWrapper_::press_button(uint8_t button) {
Mouse.press(button);
end_warping();
}
void MouseWrapper_::release_button(uint8_t button) {

Loading…
Cancel
Save