aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Perier <bambi@ubuntu.com>2012-07-07 15:57:08 +0200
committerRomain Perier <bambi@ubuntu.com>2012-07-07 15:57:08 +0200
commit1e1c7136c5be5c374e71d724dfd9ee4dea6f77ca (patch)
tree2fddd73fd7f0ddf4b3b422fbd526f79639bc3f9c
parent9fc8c9e555cf6a309e56d25dc0acf229f6cc2d03 (diff)
downloadandroid-input-bridge-1e1c7136c5be5c374e71d724dfd9ee4dea6f77ca.tar.gz
Add scrolling support on server side
-rw-r--r--aibd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/aibd.c b/aibd.c
index ea9dba6..6f857ff 100644
--- a/aibd.c
+++ b/aibd.c
@@ -131,7 +131,8 @@ static int input_subsystem_init(void)
ioctlx(uinput_fd, UI_SET_RELBIT, REL_X);
ioctlx(uinput_fd, UI_SET_RELBIT, REL_Y);
-
+ ioctlx(uinput_fd, UI_SET_RELBIT, REL_WHEEL);
+
ioctlx(uinput_fd, UI_SET_KEYBIT, BTN_LEFT);
ioctlx(uinput_fd, UI_SET_KEYBIT, BTN_RIGHT);
ioctlx(uinput_fd, UI_SET_KEYBIT, BTN_MIDDLE);