FS#10131 - WPS touchscreen

Attached to Project: Rockbox
Opened by Jonathan Gordon (jdgordon) - Tuesday, 14 April 2009, 07:21 GMT
Last edited by Jonathan Gordon (jdgordon) - Sunday, 17 May 2009, 06:27 GMT
Task Type Patches
Category User Interface
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Version 3.2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


This is the first attempt at getting the touchscreen usable in the WPS.

%T|286|207|24|24|play| <- the line to add to the .wps (%T|x|y|width|height|action| ), if you add that line to the top of cabbiev2 for the mr500 and set the ui to use the touchmode instead of the grid this will make the play/pause icon actually play/pause the music... although the icon should now be reversed...

going by the suggestions in irc, that line is linked to the viewport it is defined in, so those x/y points are relative to the viewport. this also means that the buttons can be enabled/disabled along with the rest of the viewport (untested).

The next step is to add a variable of some sort for a timer so you can display a different viewport for a short time after the touchscreen is touched.
Also, this doesnt handle repeat/holds at all yet and needs to be added... also sliding would be nice (for volume/progress bar)...

currently only 6 actions are supported, but ideally all will be usable.
This task depends upon

Closed by  Jonathan Gordon (jdgordon)
Sunday, 17 May 2009, 06:27 GMT
Reason for closing:  Accepted
Additional comments about closing:  the last thing I want to eventually add is a slider mechanism for the volume/seeking.. but dont know if/when that will ever happen.... WPS should be very usable now
Comment by Karl Kurbjun (kkurbjun) - Thursday, 16 April 2009, 01:58 GMT
I tried this out and it works great. What do you think needs to be done to add this to SVN?
Comment by Jonathan Gordon (jdgordon) - Friday, 17 April 2009, 06:46 GMT
at the bare minimum it needs support for holding down a button, or repeat presses. Also more actions.. and finally is the "button pressed" variable which we want to add. Although I am inclined to commit this as is considering how the mr500 port is moving ahead again :)
sunday will be my first chance to play with this again
Comment by Jonathan Gordon (jdgordon) - Monday, 20 April 2009, 01:42 GMT
The above patch was commited in r20753 but there is still the stuff I meanitoned above that needs to be done so leaving this open