PDA

View Full Version : Touchscreen Questions


ezzieyguywuf
08-10-2009, 16:07
Just Rockboxed my D2 last night. You dunno how long I been waiting to say that :D A few questions though: can anyone give me a quick breakdown of the 3X3 grid? The cardinal directions and the center make sense but the corners are a mystery to me. The top left seems to take me to the top menu when I'm browsing but does nothing in the WPS. The top right seems to play-pause in the WPS but does not take me back to the WPS with a long press while I'm browsing.

Also, I would be quite interested in seeing the code for the touch screen driver and possibly working on it. It seems to me that some sort of API has been established, and that at this point all thats needed is the proper implementation (correct me if I'm wrong). All that I ask is that someone point me in the right direction for the code.

Thank you shotofads and all those involved! I love Rockbox (I should probably buy a t-thirt!)

shotofadds
08-11-2009, 03:24
Yeah, the 3x3 grid mechanism is not very intuitive for screens like the WPS. And there are certainly inconsistencies, like you've spotted!

You can see the current mappings for the 3x3 grid in this source file:

http://svn.rockbox.org/viewvc.cgi/trunk/apps/keymaps/keymap-touchscreen.c?view=markup

There is a "proper" touchscreen mode that you can enable in the settings (absolute mode), but not all screens have been adapted to work with it yet. In particular, the D2 WPS has no support yet. If you want to look into this further, I'd suggest talking to mcuelenaere or JdGordon on the Rockbox IRC channel, or just mention it on the New Ports thread.

My hope is that now we have (fairly) usable music playback more people will get interested in developing areas like this, so please do have a look and see what you can improve!

ezzieyguywuf
08-11-2009, 07:46
Ya know, RTFM really is a wonderful thing. After posting that at the end of the work day yesterday, I went home and took a little bit of a closer look at the Rockbox documentation and found both the source file that you linked and information on the "proper" touchscreen stuff. Nonetheless, thanks! Also, how did you get to that source file online? I checked out the whole source code to view that one file.

Also, I will most definitely post in the new ports thread to see what other help I can get.