summaryrefslogtreecommitdiff
path: root/firmware/drivers/button.c (follow)
Commit message (Collapse)AuthorAge
...
* Wheel acceleration for e200. A general acceleration interface intended for ↵Michael Sevakis2007-07-22
| | | | | | use on any scroll target and by any code. A general interface to obtain data associated with most recently dequeued button presses and actions. Use #define HAVE_SCROLLWHEEL and set appropriate constants, values in the scroller driver that feel right. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13959 a1c6a512-1295-4272-9138-f99709370657
* fix the gigabeat remote button not working when backlight is off and filter ↵Jonathan Gordon2007-05-20
| | | | | | first keypress is enabled git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13444 a1c6a512-1295-4272-9138-f99709370657
* Moved archos backlight code to target tree. Changed old mutlivalue ↵Jens Arnold2007-04-12
| | | | | | CONFIG_BACKLIGHT to a simple HAVE_BACKLIGHT. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13136 a1c6a512-1295-4272-9138-f99709370657
* Make scheduler functions thread safe core wise. A big step towards playback ↵Miika Pekkarinen2007-03-26
| | | | | | running on COP (not yet possible because more protection on file system level is necessary). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12926 a1c6a512-1295-4272-9138-f99709370657
* Make private function static on variable CPU frequency targets. Kill it on ↵Jens Arnold2007-03-11
| | | | | | fixed frequency targets, regaining 1/3 of the waste on archos... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12731 a1c6a512-1295-4272-9138-f99709370657
* Optimized the gui list code performance, including automatic frame dropping ↵Miika Pekkarinen2007-03-11
| | | | | | and cpu boosting when button events are getting queued. Improved scrollwheel acceleration code is needed to notice a real change. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12721 a1c6a512-1295-4272-9138-f99709370657
* Fix CONFIG_BACKLIGHT warnings.Jens Arnold2007-02-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12393 a1c6a512-1295-4272-9138-f99709370657
* CONFIG_CHARGINGJonathan Gordon2007-02-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12384 a1c6a512-1295-4272-9138-f99709370657
* Convert queues to use intptr_t for event data and return values as most of ↵Michael Sevakis2006-12-19
| | | | | | the time pointer are not passed and it should make some things a bit cleaner. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11818 a1c6a512-1295-4272-9138-f99709370657
* Moved archos button reading to target tree. * Cleanup of button.[ch]. * ↵Jens Arnold2006-11-27
| | | | | | Deactivated serial remote code for recorder FM/V2 as there is no remote pin, saving ~500 bytes of code. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11612 a1c6a512-1295-4272-9138-f99709370657
* Removed the Gmini 120 and Gmini SP code. These ports are dead, unfortunately.Jens Arnold2006-11-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11504 a1c6a512-1295-4272-9138-f99709370657
* clean up some artifacts left behind from the hxxx move to target treeJonathan Gordon2006-11-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11490 a1c6a512-1295-4272-9138-f99709370657
* Target tree support for Iriver iFP.Tomasz Malesinski2006-11-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11485 a1c6a512-1295-4272-9138-f99709370657
* remove some uneeded #ifdefsJonathan Gordon2006-10-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11393 a1c6a512-1295-4272-9138-f99709370657
* move the iriver h1x0/h3x0 button driver to target treeJonathan Gordon2006-10-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11380 a1c6a512-1295-4272-9138-f99709370657
* Move iPod headphone detection into target tree (FS#6131 by Robert Keevil) ↵Daniel Ankers2006-10-07
| | | | | | and fix detection on 3G iPod git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11143 a1c6a512-1295-4272-9138-f99709370657
* Move all iPod targets into the target tree. FS#5890Barry Wardell2006-10-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11129 a1c6a512-1295-4272-9138-f99709370657
* Add wheel_status() function to the ipod "4g" button driver (i.e. all ipods ↵Dave Chapman2006-09-26
| | | | | | excluding the 3G and 1st gen mini) to read the absolute position the wheel is being touched (0..95 - clockwise from top, or -1 for untouched), plus the wheel_send_events(bool) function to disable/enable sending normal scrolling events - based on patch #4721 from Mikael Magnusson. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11068 a1c6a512-1295-4272-9138-f99709370657
* Patch #6067 from Robert Keevil - enable headphone detection for the ↵Dave Chapman2006-09-26
| | | | | | remaining ipods (mini 1g/2g and ipod 3g) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11060 a1c6a512-1295-4272-9138-f99709370657
* Patch #4899 by Robert Keevil - Automatic pause on iPod when removing the ↵Linus Nielsen Feltzing2006-09-26
| | | | | | headphones git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11057 a1c6a512-1295-4272-9138-f99709370657
* Fix "Upside down" behaviour on H10. We need to flip horizontally as well as ↵Barry Wardell2006-09-25
| | | | | | vertically and also need to flip the scroll pad up/down. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11049 a1c6a512-1295-4272-9138-f99709370657
* New scheduler, with priorities for swcodec platforms. Frequent taskMiika Pekkarinen2006-09-16
| | | | | | | | | | switching should be more efficient and tasks are stored in linked lists to eliminate unnecessary task switching to improve performance. Audio should no longer skip on swcodec targets caused by too CPU hungry UI thread or background threads. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10958 a1c6a512-1295-4272-9138-f99709370657
* Added the power off to x5 remote play button. 3s delay seems confortable and ↵Michael Sevakis2006-09-12
| | | | | | well out of the way of the long press for playback stop. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10934 a1c6a512-1295-4272-9138-f99709370657
* Added remote backlight on hold option to players with remote hold switch. ↵Michael Sevakis2006-09-10
| | | | | | Disabled IRQs while reading pcf50606 ADC. This seems to have stopped buttons becoming unresponsive when using remote. Maybe fixes other button glitches as well? git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10911 a1c6a512-1295-4272-9138-f99709370657
* fixed bootloader problem not only for x5.Rani Hod2006-08-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10492 a1c6a512-1295-4272-9138-f99709370657
* Accepted FS #5772 by Michael SevakisRani Hod2006-08-08
| | | | | | | | | | | | 1. X5 lcd sleep 2. #define HAVE_LCD_ENABLE 3. add "backlight (on hold switch)" setting, adapted from FS #5735 Note that the while(1) yield ==> asm("halt") part is NOT commited here, I prefer it would be discussed separately. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10489 a1c6a512-1295-4272-9138-f99709370657
* Moved the X5 button driver to the target treeLinus Nielsen Feltzing2006-07-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10339 a1c6a512-1295-4272-9138-f99709370657
* Work-in-progress rework of charging status reading & display: * Changed ↵Jens Arnold2006-06-06
| | | | | | several charging related HAVE_* macros into one multi-value CONFIG_CHARGING. * Always use proper macros for charging states. * Battery symbol charging animation now starts from current level on all targets with charging. Two-colour animation kept for non-b&w targets. Round down fill level while charging as before, but round to nearest pixel value for discharging on all targets. * Charging anim fixed on player. * Some code cleanup. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10080 a1c6a512-1295-4272-9138-f99709370657
* Ipods, X5: Proper backlight behaviour on buton unlock.Jens Arnold2006-04-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9788 a1c6a512-1295-4272-9138-f99709370657
* Prevent scroll wheel on mini 1g from over-scrolling when scrolling very fast.Frank Dischner2006-04-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9740 a1c6a512-1295-4272-9138-f99709370657
* Fix button driver for ipod mini 1G.Frank Dischner2006-04-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9732 a1c6a512-1295-4272-9138-f99709370657
* H300 (and H1x0): Improved button debouncing. Solves the possible 'fake ↵Jens Arnold2006-04-16
| | | | | | doubleclick' effect by not pretending no button is pressed if the reading is unstable. Now it uses the latest stable reading instead. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9691 a1c6a512-1295-4272-9138-f99709370657
* Since we poll buttons every tick now, the extra if() checking the polling ↵Jens Arnold2006-04-06
| | | | | | interval was obsolete. Pointed out by Mikael Magnusson. * Some tweaks. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9536 a1c6a512-1295-4272-9138-f99709370657
* Do extra filtering in H300 (and H100) main unit button reading to suppress ↵Jens Arnold2006-04-06
| | | | | | wrong readings during voltage transitions. * Optimised multi-button ADC reads to use a balanced binary tree with an initial check for 'any button' to determine the pressed button. * The iriver button driver wouldn't have detected main unit (ADC-connected) buttons as long as remote buttons (ADC-connected) were pressed (btn = value; vs. btn |= value), * Do extra filtering in the recorder v1 OFF button read, to suppress spurious OFF events. * Some more tweaks. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9530 a1c6a512-1295-4272-9138-f99709370657
* greyscale iPod LCD: Working display flip. * Correct register definitions for ↵Jens Arnold2006-04-01
| | | | | | HD66753. * Correct 1/3 and 2/3 greylevels. * Some tweaks. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9414 a1c6a512-1295-4272-9138-f99709370657
* iPod mini 2G: Use iPod 4G button driver instead of special minin 1G code. ↵Jens Arnold2006-03-30
| | | | | | Buttons working now, rockbox no longer hangs at boot. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9364 a1c6a512-1295-4272-9138-f99709370657
* ok, this is the correct PLAY/REC swap!Daniel Stenberg2006-03-26
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9270 a1c6a512-1295-4272-9138-f99709370657
* Patch #4913 by David Rothenberger with some changes by me: add only ↵Hristo Kovachev2006-03-25
| | | | | | backlight on first keypress to the lcd remotes, too. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9253 a1c6a512-1295-4272-9138-f99709370657
* New option: First keypress enables backlight only. Patch #2920 by Nicolas ↵Björn Stenberg2006-03-24
| | | | | | Pennequin. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9228 a1c6a512-1295-4272-9138-f99709370657
* Removed an unneeded BUTTON_HOLD define for iPod 3GHristo Kovachev2006-03-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9151 a1c6a512-1295-4272-9138-f99709370657
* Reduce code size and generally clean up the button driver more! * Add 'wheel ↵Brandon Low2006-03-19
| | | | | | repeat' functionality to prevent scrolling past the end of lists in a continuous scroll. Can release and resume scrolling to wrap to the top (4g, 5g, nano). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9110 a1c6a512-1295-4272-9138-f99709370657
* Improve button driver performance on ipod a bit by moving around queue ↵Brandon Low2006-03-18
| | | | | | checks and properly detecting end-of-scroll. * Provide to an application which reads the button queue directly the data from the wheel (position and delta) for custom wheel driver (only sent for deltas large enough to cause a scroll event for now git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9099 a1c6a512-1295-4272-9138-f99709370657
* Code policingBrandon Low2006-03-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8989 a1c6a512-1295-4272-9138-f99709370657
* iAudio X5: Remote control buttonsLinus Nielsen Feltzing2006-03-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8968 a1c6a512-1295-4272-9138-f99709370657
* Additional minor button interrupt tweaks, in a completely unscientific way, ↵Brandon Low2006-03-07
| | | | | | this seems to make the 5g more responsive at 30mhz git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8940 a1c6a512-1295-4272-9138-f99709370657
* Slight simplification of scroll button driverBrandon Low2006-03-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8939 a1c6a512-1295-4272-9138-f99709370657
* More efficient button_read() for archos recorders and Ondios.Jens Arnold2006-03-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8908 a1c6a512-1295-4272-9138-f99709370657
* Patch #3060 from Andrew Scott - iPod mini button driverDave Chapman2006-02-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8857 a1c6a512-1295-4272-9138-f99709370657
* More iPod 3G work from Seven Le MesleDave Chapman2006-02-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8835 a1c6a512-1295-4272-9138-f99709370657
* Ooops. Forgot to remove some debug codeLinus Nielsen Feltzing2006-02-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8830 a1c6a512-1295-4272-9138-f99709370657