diff options
author | Ashish Gupta <ashmew2@gmail.com> | 2017-09-30 16:17:08 +0200 |
---|---|---|
committer | Ashish Gupta <ashmew2@gmail.com> | 2017-09-30 16:17:08 +0200 |
commit | 46fe390b976c932dd786becf40a42c4f95053365 (patch) | |
tree | 88d39f33a86f138f6750459d01887cd2812e5fa2 | |
parent | 5d78cf0b61564552789af82529220167d561e5d7 (diff) | |
download | libnsfb-46fe390b976c932dd786becf40a42c4f95053365.tar.gz libnsfb-46fe390b976c932dd786becf40a42c4f95053365.tar.bz2 |
Minor fixes for keypresses
-rw-r--r-- | src/surface/kolibri.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/surface/kolibri.c b/src/surface/kolibri.c index 6a7b2dc..25b59e1 100644 --- a/src/surface/kolibri.c +++ b/src/surface/kolibri.c @@ -439,7 +439,7 @@ static bool kolibri_surface_input(nsfb_t *nsfb, nsfb_event_t *event, unsigned diff = previous_mouse_buttons^b; /* All high bits in the XOR represent bits that changed */ - if (diff & 0x1) { + if (diff & 0x1 || diff & 0x10000) { /* Left mouse button */ event->value.keycode = NSFB_KEY_MOUSE_1; /* debug_board_printf("-- Mouse LEFT button : 0x%x\n", b); */ |