diff options
author | Patrick Boettcher <devnull@localhost> | 2005-04-17 18:08:14 +0000 |
---|---|---|
committer | Patrick Boettcher <devnull@localhost> | 2005-04-17 18:08:14 +0000 |
commit | 257c0fe84d1f6bb41efff21aec43f4153f9d26cb (patch) | |
tree | 198b003e0e46f6a43effe8ed6f8375a7a07d1c6c /linux/drivers/media/dvb/dvb-usb/dvb-usb-remote.c | |
parent | 4e4da24aa36487071bd874fc63d387258299ceb0 (diff) | |
download | mediapointer-dvb-s2-257c0fe84d1f6bb41efff21aec43f4153f9d26cb.tar.gz mediapointer-dvb-s2-257c0fe84d1f6bb41efff21aec43f4153f9d26cb.tar.bz2 |
enabled remote controls again
nova-t has now real RC5 keys :)
Diffstat (limited to 'linux/drivers/media/dvb/dvb-usb/dvb-usb-remote.c')
-rw-r--r-- | linux/drivers/media/dvb/dvb-usb/dvb-usb-remote.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/dvb-usb-remote.c b/linux/drivers/media/dvb/dvb-usb/dvb-usb-remote.c index 811af315e..7908b4de6 100644 --- a/linux/drivers/media/dvb/dvb-usb/dvb-usb-remote.c +++ b/linux/drivers/media/dvb/dvb-usb/dvb-usb-remote.c @@ -26,6 +26,22 @@ static void dvb_usb_read_remote_control(void *data) goto schedule; } + + switch (state) { + case REMOTE_NO_KEY_PRESSED: + break; + case REMOTE_KEY_PRESSED: + d->last_event = event; + case REMOTE_KEY_REPEAT: + input_event(&d->rc_input_dev, EV_KEY, event, 1); + input_event(&d->rc_input_dev, EV_KEY, d->last_event, 0); + input_sync(&d->rc_input_dev); + break; + default: + break; + } + +/* improved repeat handling ??? switch (state) { case REMOTE_NO_KEY_PRESSED: deb_rc("NO KEY PRESSED\n"); @@ -58,6 +74,7 @@ static void dvb_usb_read_remote_control(void *data) default: break; } +*/ schedule: schedule_delayed_work(&d->rc_query_work,msecs_to_jiffies(d->props.rc_interval)); |