X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=linux%2Fin_evdev.c;h=3d0522c25ec7d095189f9d62a2059172850669d2;hb=2c60056042e94007286e3e0e1789f4c9a78b7731;hp=79e9371f785ea83fe0b460fd642a74c25fc2d264;hpb=f15ca4db35a3466cc59b796c2a5d8b963721a02c;p=libpicofe.git diff --git a/linux/in_evdev.c b/linux/in_evdev.c index 79e9371..3d0522c 100644 --- a/linux/in_evdev.c +++ b/linux/in_evdev.c @@ -195,7 +195,7 @@ no_abs: ioctl(fd, EVIOCGNAME(sizeof(name)-6), name+6); printf("in_evdev: found \"%s\" with %d events (type %08x)\n", name+6, count, support); - in_register(name, IN_DRVID_EVDEV, fd, dev); + in_register(name, IN_DRVID_EVDEV, fd, dev, 0); continue; skip: @@ -363,11 +363,18 @@ static int in_evdev_menu_translate(int keycode) case KEY_RIGHT: return PBTN_RIGHT; case KEY_ENTER: case BTN_A: - case BTN_TRIGGER: return PBTN_MOK; + case BTN_TRIGGER: + return PBTN_MOK; case KEY_ESC: case BTN_B: - case BTN_THUMB: return PBTN_MBACK; - case KEY_MENU: return PBTN_MENU; + case BTN_THUMB: + return PBTN_MBACK; + case KEY_MENU: + return PBTN_MENU; + case KEY_LEFTBRACE: + return PBTN_L; + case KEY_RIGHTBRACE: + return PBTN_R; default: return 0; } }