Commit graph

273 commits

Author SHA1 Message Date
Barry Wardell
d5e628f4ed Simplify the numeric keypad -> device button mapping in the UI simulator for all targets. Split the mapping by target keypad type, rather that by what button a target has. Also, add a mapping for the Sansa e200 series.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11304 a1c6a512-1295-4272-9138-f99709370657
2006-10-21 22:34:09 +00:00
Jens Arnold
edc19fb56a Added necessary bits & pieces for building an ipod 3rd gen simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11239 a1c6a512-1295-4272-9138-f99709370657
2006-10-16 18:15:36 +00:00
Miika Pekkarinen
a85044bf9e New scheduler, with priorities for swcodec platforms. Frequent task
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
2006-09-16 16:18:11 +00:00
Daniel Ankers
8300d8c194 Oops - fix warnings and add a simulator version of remove_thread_on_core()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10876 a1c6a512-1295-4272-9138-f99709370657
2006-09-03 21:00:19 +00:00
Daniel Ankers
9bb3128235 Fix simulation of threads across multiple cores
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10875 a1c6a512-1295-4272-9138-f99709370657
2006-09-03 20:21:21 +00:00
Barry Wardell
99c2dc5284 Add new build target for iriver H10 5/6Gb.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10661 a1c6a512-1295-4272-9138-f99709370657
2006-08-19 19:21:17 +00:00
Tomasz Malesinski
a19032c550 Iriver iFP7xx support in simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10650 a1c6a512-1295-4272-9138-f99709370657
2006-08-18 19:14:11 +00:00
Hristo Kovachev
1792170633 Add remote_type() to the uisim for h100/h300 builds. Use the "t" key to switch between remote types (only changes the remote_type()'s return value for now)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10577 a1c6a512-1295-4272-9138-f99709370657
2006-08-15 08:33:38 +00:00
Hristo Kovachev
9dc0e62229 Patch #5731 by Barry Wardell: more iriver h10 work. Thanks!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10521 a1c6a512-1295-4272-9138-f99709370657
2006-08-11 08:35:27 +00:00
Daniel Stenberg
e43b29dde2 iriver H10 fixes by Barry
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10450 a1c6a512-1295-4272-9138-f99709370657
2006-08-03 20:25:39 +00:00
Miika Pekkarinen
8a7b9161ab Adjust the counter even higher so it should work quite stable now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10385 a1c6a512-1295-4272-9138-f99709370657
2006-07-31 15:13:31 +00:00
Miika Pekkarinen
957bf22879 Prevent simulator SDL audio skipping under OS X (FS#5748 by Emanuel
Zephir).


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10384 a1c6a512-1295-4272-9138-f99709370657
2006-07-31 15:11:03 +00:00
Miika Pekkarinen
4222f6ce0d Prevent the simulator SDL audio skipping under Linux.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10383 a1c6a512-1295-4272-9138-f99709370657
2006-07-31 15:02:39 +00:00
Jens Arnold
05ddd9a44e X5 remote LCD drawing. This will break target linking atm - lcd_remote_update[_rect]() are not yet implemented.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10347 a1c6a512-1295-4272-9138-f99709370657
2006-07-28 07:35:45 +00:00
Linus Nielsen Feltzing
c849219370 Moved the X5 button driver to the target tree
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10339 a1c6a512-1295-4272-9138-f99709370657
2006-07-27 13:27:31 +00:00
Antoine Cellerier
ebfb4f3ab2 Bind F8 key to "on" button (usefull if you don't have a numpad)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10287 a1c6a512-1295-4272-9138-f99709370657
2006-07-22 23:10:51 +00:00
Peter D'Hoye
5aa017b040 Simulator: map ESC key to POWER button as a way to exit plugins. Patch #5681 by Rani Hod (RaeNye).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10244 a1c6a512-1295-4272-9138-f99709370657
2006-07-19 00:39:30 +00:00
Jens Arnold
ae0c1af6ce Adjustments for simulating a backlight-modded Ondio.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10038 a1c6a512-1295-4272-9138-f99709370657
2006-06-03 12:09:12 +00:00
Jens Arnold
25f386017c Fix red playersim build on linux, and make it a bit less hackish.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9978 a1c6a512-1295-4272-9138-f99709370657
2006-05-23 10:00:11 +00:00
Jens Arnold
8325e0bf24 Implemented screendump for the player sim.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9977 a1c6a512-1295-4272-9138-f99709370657
2006-05-23 07:48:43 +00:00
Brandon Low
9cde77060a Patch 5107 from Steve Bavin, enable locking on sdl sim, now mutexes actually MUT EX on the SDL sim
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9638 a1c6a512-1295-4272-9138-f99709370657
2006-04-12 15:38:56 +00:00
Jens Arnold
4c544b4e07 Fix greyscale iPod sims for new LCD format.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9480 a1c6a512-1295-4272-9138-f99709370657
2006-04-04 01:40:11 +00:00
Jens Arnold
80865f2440 UI pictures for iPod mini 1G and 2G simulators.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9435 a1c6a512-1295-4272-9138-f99709370657
2006-04-02 19:07:27 +00:00
Dan Everton
d0c65f76b2 Use correct sleep function in simulator queue wait.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9343 a1c6a512-1295-4272-9138-f99709370657
2006-03-29 12:11:28 +00:00
Hristo Kovachev
a70c6b9b1e Patch #4913 by David Rothenberger with some changes by me: add only backlight on first keypress to the lcd remotes, too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9253 a1c6a512-1295-4272-9138-f99709370657
2006-03-25 19:16:45 +00:00
Björn Stenberg
da5fb18bca New option: First keypress enables backlight only. Patch #2920 by Nicolas Pennequin.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9228 a1c6a512-1295-4272-9138-f99709370657
2006-03-24 13:47:24 +00:00
Thom Johansen
738a584a5c Use correct types, which kills some AMD64 sim warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9191 a1c6a512-1295-4272-9138-f99709370657
2006-03-22 16:04:01 +00:00
Daniel Stenberg
4582f233ce code policed // comments
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9112 a1c6a512-1295-4272-9138-f99709370657
2006-03-19 06:59:36 +00:00
Dan Everton
5b3e3e1f2a Fix some incorrectly declared functions in the sim.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9080 a1c6a512-1295-4272-9138-f99709370657
2006-03-17 22:09:34 +00:00
Jens Arnold
4bd8715449 Don't crash the simulator when the pcm callback runs out of data.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8998 a1c6a512-1295-4272-9138-f99709370657
2006-03-11 10:22:20 +00:00
Marcoen Hirschberg
4e96f7df9f make the enter key work again in the windows SDL sim
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8976 a1c6a512-1295-4272-9138-f99709370657
2006-03-09 13:55:10 +00:00
Jens Arnold
b4ada860b3 Allow building simulators on systems where errno is thread-local by using the system's implementation of errno.h for simulator builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8871 a1c6a512-1295-4272-9138-f99709370657
2006-02-28 23:56:44 +00:00
Jens Arnold
4b9fbd1687 Fix yellow H1x0 simulator builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8846 a1c6a512-1295-4272-9138-f99709370657
2006-02-26 13:58:06 +00:00
Jens Arnold
6a972e0249 Finally - grayscale library support for the simulators. Currently SDL only, win32 and x11 won't link anymore due to missing simulator functions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8845 a1c6a512-1295-4272-9138-f99709370657
2006-02-26 13:37:42 +00:00
Marcoen Hirschberg
338e2bbb0c first gigabeat commit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8831 a1c6a512-1295-4272-9138-f99709370657
2006-02-24 15:42:52 +00:00
Dan Everton
681bd70b4f Add iPod Video sim background contributed by aaronfg.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8819 a1c6a512-1295-4272-9138-f99709370657
2006-02-23 21:50:34 +00:00
Dan Everton
581b0f1d43 Remove two unused variables and fix a warning in the sim peak meter function.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8818 a1c6a512-1295-4272-9138-f99709370657
2006-02-23 21:42:53 +00:00
Dan Everton
e376545211 Make peak meter work in simulator for SWCODEC targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8815 a1c6a512-1295-4272-9138-f99709370657
2006-02-23 21:13:03 +00:00
Jens Arnold
6876336fee Fix yellow builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8796 a1c6a512-1295-4272-9138-f99709370657
2006-02-23 00:21:44 +00:00
Dan Everton
4f54dbd91f Better (i.e. working) sound in the SDL sim in Windows.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8793 a1c6a512-1295-4272-9138-f99709370657
2006-02-22 22:45:10 +00:00
Daniel Stenberg
18e097c8ff using --zoom with no number given defaults to 2 and no longer segfaults
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8771 a1c6a512-1295-4272-9138-f99709370657
2006-02-21 21:56:38 +00:00
Dan Everton
3945218810 Proper working sound in the SDL sim. Add option to write raw audio to a file, use --debugaudio command line option.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8770 a1c6a512-1295-4272-9138-f99709370657
2006-02-21 21:48:06 +00:00
Dave Chapman
efd78238f6 Re-commit bitmaps in binary mode
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8757 a1c6a512-1295-4272-9138-f99709370657
2006-02-20 23:44:22 +00:00
Dave Chapman
65e47bfd94 Remove bitmaps added in ASCII mode
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8756 a1c6a512-1295-4272-9138-f99709370657
2006-02-20 23:43:27 +00:00
Daniel Stenberg
abbdcacfbd minor adjustments for the x5 LCD, we're back at 16 bits for upper LCD layers
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8746 a1c6a512-1295-4272-9138-f99709370657
2006-02-20 12:03:32 +00:00
Jens Arnold
3e496e3ecf Reworked player simulator icons to fit the changed charcell scale factor and look more like the actual icons. Adapted player sim display sizes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8745 a1c6a512-1295-4272-9138-f99709370657
2006-02-20 00:31:10 +00:00
Jens Arnold
237d3c4c4b Adaptive button repeat: adapts repeat rate depending on the ability of the application to cope. Avoids afterscroll and similar effects. * Yield while scrolling through lists.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8738 a1c6a512-1295-4272-9138-f99709370657
2006-02-19 13:34:12 +00:00
Dan Everton
7c64631792 Actually fix the palette issue.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8705 a1c6a512-1295-4272-9138-f99709370657
2006-02-16 18:55:36 +00:00
Dan Everton
aef9e85a32 Fix palette generation and remote LCD update in SDL sim.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8704 a1c6a512-1295-4272-9138-f99709370657
2006-02-16 18:54:41 +00:00
Dan Everton
853085ccc8 Reverse scroll forwardd/back button mapping for iPod in the SDL sim.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8690 a1c6a512-1295-4272-9138-f99709370657
2006-02-14 11:46:18 +00:00
Dan Everton
3ba0060ac1 Backlight support for 8-bit targets in SDL sim. Redo sound handling. Still doesn't work right, but is closer to how the actual Rockbox system does it. Move some stub functions in to Win32 and X11 sims to keep them compiling.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8686 a1c6a512-1295-4272-9138-f99709370657
2006-02-13 21:46:28 +00:00
Dan Everton
d66c0e5d09 Correct mutex locking order in runthread. Doesn't seem to fix anything though.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8664 a1c6a512-1295-4272-9138-f99709370657
2006-02-12 12:47:20 +00:00
Dan Everton
3898dedbb1 Fix remote not being shown when displaying background in the sim.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8652 a1c6a512-1295-4272-9138-f99709370657
2006-02-10 19:25:39 +00:00
Dan Everton
b585e87b45 Refactor SDL sim source so drawing routines are written once. Split bitmap, remote, and charcell LCD in to their own files. Add zoom support, use --zoom factor (e.g. --zoom 2 for two times zoom) to use it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8645 a1c6a512-1295-4272-9138-f99709370657
2006-02-09 21:49:28 +00:00
Dan Everton
ee2019d591 Made backgrounds runtime optional in SDL sim. Use --background to turn them on. Also removed two unneeded files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8642 a1c6a512-1295-4272-9138-f99709370657
2006-02-09 11:17:52 +00:00
Dave Chapman
8ad2df8275 Create an SDL sim for the iPod 4G Grayscale and also create an IPOD_ARCH define for all iPods.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8636 a1c6a512-1295-4272-9138-f99709370657
2006-02-09 00:48:53 +00:00
Jens Arnold
73a28d1e93 These files don't belong here.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8631 a1c6a512-1295-4272-9138-f99709370657
2006-02-08 13:56:00 +00:00
Jens Arnold
a57608cfb5 Correct LCD background colours for b&w and greyscale SDL sims (SDL takes RGB while Win32 takes BGR)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8630 a1c6a512-1295-4272-9138-f99709370657
2006-02-08 13:54:21 +00:00
Jens Arnold
fd428ddf8e More SDL simulator LCD fixes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8628 a1c6a512-1295-4272-9138-f99709370657
2006-02-08 13:19:16 +00:00
Linus Nielsen Feltzing
b772a436fa The SDL simulator didn't draw the pixels correctly on targets with gray/mono LCD, part 2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8625 a1c6a512-1295-4272-9138-f99709370657
2006-02-08 13:03:23 +00:00
Linus Nielsen Feltzing
3903807e62 The SDL simulator didn't draw the pixels correctly on targets with gray/mono LCD
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8624 a1c6a512-1295-4272-9138-f99709370657
2006-02-08 12:43:14 +00:00
Linus Nielsen Feltzing
621bcc2294 The simulator should use the keypad period key, not the regular one
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8568 a1c6a512-1295-4272-9138-f99709370657
2006-02-04 23:15:15 +00:00
Linus Nielsen Feltzing
9394175091 Added iAudio X5 SDl sim image
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8566 a1c6a512-1295-4272-9138-f99709370657
2006-02-04 22:37:44 +00:00
Linus Nielsen Feltzing
3f66e8edff Ooops :-)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8548 a1c6a512-1295-4272-9138-f99709370657
2006-02-03 16:01:16 +00:00
Linus Nielsen Feltzing
fc72c53758 Patch #1417462 by Dan Everton - Improved SDL simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8546 a1c6a512-1295-4272-9138-f99709370657
2006-02-03 15:19:58 +00:00
Linus Nielsen Feltzing
765e0f89d8 New kernel function, queue_delete(struct event_queue *q)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8424 a1c6a512-1295-4272-9138-f99709370657
2006-01-23 10:53:47 +00:00
Daniel Stenberg
acf7d5e89e more iAudio x5 adjustments by Matt v.d. Westhuizen (#1408980)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8386 a1c6a512-1295-4272-9138-f99709370657
2006-01-19 12:44:46 +00:00
Daniel Stenberg
cedba8830f Matt v.d. Westhuizen's iAudio X5 keypad adjustments
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8366 a1c6a512-1295-4272-9138-f99709370657
2006-01-18 11:09:06 +00:00
Dave Chapman
bae4e2acdd Use SDL's thread wrappers instead of pthreads to increase portability in the SDL sim. Patch by Andrew Pilley with some changes by me.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8347 a1c6a512-1295-4272-9138-f99709370657
2006-01-13 13:38:31 +00:00
Dave Chapman
b855a9aeb6 Add button definitions for the iPod clickwheel
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8346 a1c6a512-1295-4272-9138-f99709370657
2006-01-13 10:39:41 +00:00
Linus Nielsen Feltzing
a5750f85f3 More distinct grayscales in the H1x0 SDl simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8315 a1c6a512-1295-4272-9138-f99709370657
2006-01-09 12:46:08 +00:00
Dave Chapman
84e2528271 Fix RGB565SWAPPED lcd output
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8313 a1c6a512-1295-4272-9138-f99709370657
2006-01-09 11:53:45 +00:00
Daniel Stenberg
0e419987e4 SDL simulator brought by Nathan Hand and Nick Lanham. This is added as a third
simulator with the hope that once it works fine, we can remove the other two
and only have one unified simulator.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8312 a1c6a512-1295-4272-9138-f99709370657
2006-01-09 11:22:36 +00:00