Rockbox

Tasklist

FS#11008 - Clickable background and mouse wheel events for UI Simulator

Attached to Project: Rockbox
Opened by Fred Bauer (freddyb) - Friday, 12 February 2010, 20:38 GMT
Last edited by Frank Gevaerts (fg) - Tuesday, 16 February 2010, 17:35 GMT
Task Type Patches
Category Simulator
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Release 3.4
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

This patch turns the simulator background into a clickable area. i.e. you click on the play button to press play. It also maps mouse scrollwheel events to rockbox scrollwheel events. This facilitates testing because you don't have to move your hand between the mouse and keyboard. There are currently maps for Fuze, iPod, and e200. I would add the others if there is interest.
This task depends upon

Closed by  Frank Gevaerts (fg)
Tuesday, 16 February 2010, 17:35 GMT
Reason for closing:  Accepted
Additional comments about closing:  Committed as r24696
Comment by Frank Gevaerts (fg) - Friday, 12 February 2010, 20:52 GMT
Two comments after quickly looking at the patch
- Touchscreen targets can have real buttons too
- I'd go for a rectangle for each button instead of this circular area with fixed radius, or at least for a configurable radius per button
Comment by Fred Bauer (freddyb) - Friday, 12 February 2010, 21:47 GMT
Small change to make coordinates relative to top left corner of lcd display for mouse clicks when using --debug-wps.
Comment by Frank Gevaerts (fg) - Saturday, 13 February 2010, 13:43 GMT
v2 doesn't actually compile for non-remote targets now
Comment by Fred Bauer (freddyb) - Saturday, 13 February 2010, 15:00 GMT
Added touchscreen support and a button map for Cowon D2.
Current targets: Sansa Fuze and E200, iPod Video, Cowon D2, iAudio X5
Disabled mouse wheel for non-scroll wheel targets.
Added conditionals for remotes.

Reduced button radius a bit.
Frank, I'm leaning towards using radius per button approach because rectangles won't fit as well for the main left right up down buttons on many players.
Comment by Fred Bauer (freddyb) - Saturday, 13 February 2010, 18:45 GMT
Changed button struct to include radius values per button.

Added --mapping flag which outputs a template for a struct line when clicking on the background to facilitate creating new button maps.
-Drag the mouse before releasing to get a radius value.

Comment by Fred Bauer (freddyb) - Saturday, 13 February 2010, 23:11 GMT
More targets.
Comment by Fred Bauer (freddyb) - Sunday, 14 February 2010, 05:53 GMT
More targets. I believe this covers all the stable ports and the unstable ports except for Samsung models.

Archos FM Recorder, Archos OndioFM, Archos OndioSP, Archos Player, Archos Recorder, Archos RecorderV2
Cowon D2
Gigabeat F/X, Gigabeat S
iAudio 7, iAudio M3, iAudio M5, iAudio X5
Ipod 1g2g, Ipod 3g, Ipod 4g, Ipod Color, Ipod Mini, Ipod Mini2g, Ipod Nano, Ipod Nano2g, Ipod Video
Iriver H100, Iriver H120, Iriver H300
Mrobe 100, Mrobe 500
Sansa C200, Sansa C200v2, Sansa Clip, Sansa E200, Sansa E200v2
Comment by Fred Bauer (freddyb) - Sunday, 14 February 2010, 15:36 GMT
More Targets: This now includes everything stable and unstable.
Comment by Fred Bauer (freddyb) - Sunday, 14 February 2010, 23:41 GMT
More targets. Now includes everything that compiles.
Added a few lines to docs/UISIMULATOR.
Added --debugbuttons flag that prints the description of the button pressed
Added a #WARNING if no button map is defined.
Comment by Fred Bauer (freddyb) - Monday, 15 February 2010, 01:35 GMT
Took the #WARNING back out.

Loading...