Rework the simulators button reading to not implement it's own complete driver.
commit734126c5b7baee15ebf66f90e7283fae1be60db1
authorkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Wed, 23 Sep 2009 16:59:56 +0000 (23 16:59 +0000)
committerkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Wed, 23 Sep 2009 16:59:56 +0000 (23 16:59 +0000)
tree494dd606a51ad63132b5fdf19e4ddc12b552e45a
parent1ba5464495ba9acc4c6059e088df265eb7a19c68
Rework the simulators button reading to not implement it's own complete driver.

Instead, implement it more as a target driver with button_read_device(), button_init_device() and button_hold(), then use the normal button driver from firmware/drivers/button.c.
Fixes FS#10451 ("backlight off on hold doesn't function properly").

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22799 a1c6a512-1295-4272-9138-f99709370657
firmware/drivers/button.c
uisimulator/sdl/button-sdl.h [new file with mode: 0644]
uisimulator/sdl/button.c