Commit graph

33 commits

Author SHA1 Message Date
Jens Arnold
74b731edc6 Major rework of the x11 simulator button handling. (1) Button repeat should always work correctly now, not sending a release before the repeat(s). Fixes e.g. calling the Ondio menu. (2) Button handling is done in the timer thread, not sleep()ing the main thread for extended times. Fixes slow performance of high-workload plugins (codec tests). (3) The x11 simulator now also contains the queue handling code. (4) The new code requires X11R6 because the multi-threading extension is used.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6215 a1c6a512-1295-4272-9138-f99709370657
2005-03-18 23:51:52 +00:00
Jens Arnold
31b28f523a Extensive code policing (indentation levels, tab characters).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6199 a1c6a512-1295-4272-9138-f99709370657
2005-03-18 00:03:22 +00:00
Michiel Van Der Kolk
abacb23796 dummy button_hold() function to fix iriver sim builds.
(needs to be fixed to actually work on sims later)


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6117 a1c6a512-1295-4272-9138-f99709370657
2005-03-03 15:55:11 +00:00
Jean-Philippe Bernardy
5804664fe7 long policy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5845 a1c6a512-1295-4272-9138-f99709370657
2005-02-07 23:11:20 +00:00
Jens Arnold
3c348df5ca Changed several places to use button_clear_queue() to empty the button queue. Added the ability to empty the (system's) button queue to the X11 simulatr.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5665 a1c6a512-1295-4272-9138-f99709370657
2005-01-26 22:48:25 +00:00
Jens Arnold
e6f403f509 X11 sim: Button handling adapted to iRiver and reworked a bit. Removed tab chars.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5587 a1c6a512-1295-4272-9138-f99709370657
2005-01-17 21:14:34 +00:00
Jörg Hohensohn
593cc00447 a hell of a commit: changed several HAVE_xx configuration flags into multiple choice values (keypad, tuner, CPU, h/w codec)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5126 a1c6a512-1295-4272-9138-f99709370657
2004-09-28 22:13:26 +00:00
Björn Stenberg
6c33c51a4c Redesigned the button handling. The code now uses symbolic function defines instead of checking for specific buttons. This makes it easier to add support for new devices with different button layouts.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5091 a1c6a512-1295-4272-9138-f99709370657
2004-09-19 21:58:37 +00:00
Björn Stenberg
8b6950493b Moved LCD_WIDHT/HEIGHT from lcd driver to config file.
Simulators now use conig-xxx.h.
Added Iriver H100 to tools/configure.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5081 a1c6a512-1295-4272-9138-f99709370657
2004-09-16 14:36:08 +00:00
Linus Nielsen Feltzing
da7177749a Removed annoying debug output
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4943 a1c6a512-1295-4272-9138-f99709370657
2004-07-24 23:54:59 +00:00
Linus Nielsen Feltzing
15d04fdb00 Somewhat better key combination handling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4930 a1c6a512-1295-4272-9138-f99709370657
2004-07-23 21:38:43 +00:00
Linus Nielsen Feltzing
ad5c0ed245 Forgot to remove all traces of the obsolete repeat mask functions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4909 a1c6a512-1295-4272-9138-f99709370657
2004-07-21 08:29:22 +00:00
Linus Nielsen Feltzing
a754dd84b8 Added raw button reading functionality
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4907 a1c6a512-1295-4272-9138-f99709370657
2004-07-21 08:02:23 +00:00
Linus Nielsen Feltzing
a8dab4c08a New screen dump feature for recorders
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4817 a1c6a512-1295-4272-9138-f99709370657
2004-06-30 13:31:14 +00:00
Linus Nielsen Feltzing
a6142ab7ab Finally, the archos directory sandbox works in the same way for both X11 and win32 simulators. Unfortunately, this breaks the VC++ compatibility. Also, the plugin API now supports DEBUGF. Last, but not least, we have a new plugin, vbrfix.rock.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4726 a1c6a512-1295-4272-9138-f99709370657
2004-06-10 13:29:52 +00:00
Daniel Stenberg
eae511030c Now supports key-repeat in the simulator!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3594 a1c6a512-1295-4272-9138-f99709370657
2003-04-23 18:49:57 +00:00
Mats Lidell
74cc9e41fa Remove use of rockbox-mode.el in local variables list.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3157 a1c6a512-1295-4272-9138-f99709370657
2003-01-24 10:56:06 +00:00
Daniel Stenberg
5fcce4da58 Now the X11 simulator sets the BUTTON_REL bit properly and thus generates
button release events, much in the same way the actual target behaves.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2606 a1c6a512-1295-4272-9138-f99709370657
2002-10-14 08:09:29 +00:00
Daniel Stenberg
ea60436cd8 slow down the button check function, this makes the cube look sane in the
simulator


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2605 a1c6a512-1295-4272-9138-f99709370657
2002-10-13 14:16:44 +00:00
Björn Stenberg
9af59727b3 Added button release events
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1885 a1c6a512-1295-4272-9138-f99709370657
2002-08-21 14:13:53 +00:00
Daniel Stenberg
a398aa49dd healing the X11 simulator (button_get_w_tmo wise), please bear with me as I
haven't tested this fix but it compiles nicely ;-)


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1579 a1c6a512-1295-4272-9138-f99709370657
2002-08-07 08:43:55 +00:00
Daniel Stenberg
93c1b40b8d there is no XK_Enter!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1538 a1c6a512-1295-4272-9138-f99709370657
2002-08-05 15:40:49 +00:00
Daniel Stenberg
b3a80fbe30 George Styles added a few keys for running the simulator on without numerical
keypad


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1535 a1c6a512-1295-4272-9138-f99709370657
2002-08-05 14:11:40 +00:00
Linus Nielsen Feltzing
52f54830da Added set_release() and set_repeat()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1467 a1c6a512-1295-4272-9138-f99709370657
2002-07-27 19:51:31 +00:00
Björn Stenberg
d39904e29d Some X servers send KP_Begin for keypad 5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1177 a1c6a512-1295-4272-9138-f99709370657
2002-06-25 11:05:30 +00:00
Daniel Stenberg
ed6c7e4e03 warning hunt and kill session
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1000 a1c6a512-1295-4272-9138-f99709370657
2002-06-14 11:00:13 +00:00
Daniel Stenberg
d68ee12d1b shorten the sleep for blocking key-gets to make it behave better
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@776 a1c6a512-1295-4272-9138-f99709370657
2002-05-29 08:37:06 +00:00
Daniel Stenberg
132a09b057 adjusted to new button_get api
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@765 a1c6a512-1295-4272-9138-f99709370657
2002-05-28 15:05:16 +00:00
Björn Stenberg
8cbedc3793 Added player MENU and ON keys
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@646 a1c6a512-1295-4272-9138-f99709370657
2002-05-21 15:02:13 +00:00
Björn Stenberg
28af55d61a Added support for player keypad
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@597 a1c6a512-1295-4272-9138-f99709370657
2002-05-16 14:46:58 +00:00
Björn Stenberg
7ae053a6e9 Changing to C99 'bool'
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@562 a1c6a512-1295-4272-9138-f99709370657
2002-05-13 12:45:46 +00:00
Daniel Stenberg
837e2c475f don't define anything like this here
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@421 a1c6a512-1295-4272-9138-f99709370657
2002-05-04 12:22:03 +00:00
Daniel Stenberg
3caa3c0871 moved X11-specific files into a separate subdir to keep root clean for
target files


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@282 a1c6a512-1295-4272-9138-f99709370657
2002-04-27 23:48:49 +00:00
Renamed from uisimulator/button-x11.c (Browse further)