summaryrefslogtreecommitdiff
path: root/src/surface/kolibri.c
diff options
context:
space:
mode:
authorAshish Gupta <ashmew2@gmail.com>2017-09-30 16:17:08 +0200
committerAshish Gupta <ashmew2@gmail.com>2017-09-30 16:17:08 +0200
commit46fe390b976c932dd786becf40a42c4f95053365 (patch)
tree88d39f33a86f138f6750459d01887cd2812e5fa2 /src/surface/kolibri.c
parent5d78cf0b61564552789af82529220167d561e5d7 (diff)
downloadlibnsfb-46fe390b976c932dd786becf40a42c4f95053365.tar.gz
libnsfb-46fe390b976c932dd786becf40a42c4f95053365.tar.bz2
Minor fixes for keypresses
Diffstat (limited to 'src/surface/kolibri.c')
-rw-r--r--src/surface/kolibri.c2
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); */