Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#9460 - button tokens in the wps for volume

Attached to Project: Rockbox
Opened by Jonathan Gordon (jdgordon) - Monday, 06 October 2008, 09:54 GMT+2
Last edited by Jonathan Gordon (jdgordon) - Thursday, 09 October 2008, 13:10 GMT+2
Task Type Patches
Category Themes
Status Closed
Assigned To No-one
Player Type All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Private No

Details

this patch adds %Bv to the wps which will be true when the volume button is being pressed so you can put fun stuff on the screen like some of the OF's if you want... (it will stay true for about 1s after the volume stops being changed.. might need to lower that though)
   wps_button_tokens.diff (2.6 KiB)
 apps/gui/gwps-common.c |    5 +++++
 apps/gui/gwps.c        |    4 ++++
 apps/gui/gwps.h        |    8 +++++++-
 apps/gui/wps_parser.c  |    3 +++
 4 files changed, 19 insertions(+), 1 deletion(-)

This task depends upon

Closed by  Jonathan Gordon (jdgordon)
Thursday, 09 October 2008, 13:10 GMT+2
Reason for closing:  Accepted
Comment by Jonathan Gordon (jdgordon) - Tuesday, 07 October 2008, 10:50 GMT+2
updated version.. the tag is now %mv, also changed a comment.

I dont know if conditionals can have parameters so for the time being its hard coded to change back to false after 1s with no volume button being pressed which I think is OK... 1/2s is too fast and will change back to false quickly between pressing the button and it realising its a repeat button.
   wps_button_tokens.diff (2.5 KiB)
 apps/gui/gwps-common.c |    5 +++++
 apps/gui/gwps.c        |    4 ++++
 apps/gui/gwps.h        |    8 +++++++-
 apps/gui/wps_parser.c  |    2 ++
 4 files changed, 18 insertions(+), 1 deletion(-)

Loading...