2008-02-27, 00:12
Can anyone clear up a few points for me;
When using WindowXML or DialogXML and their onAction()
1) against the param 'action', should I be trapping action.getId() or just acting purely upon action.getButtonCode() ?
I ask as the thumb sticks don't seem consotent in their actionID reporting.
eg
left stick gives no actionID (0) AND a buttonCode in (280, 281, 282, 283)
for right thumb stick, actionID in (88, 89, 124, 125) AND a buttonCode in (266, 267, 268, 269)
so, why no actionID for left thumb stick ?
2) When onAction() traps a buttonCode for right thumb stick UP or DOWN and does <my own action> it still causes the volume control to be displayed.
How can I prevent the volume control from receiving an action?
Can it be disabled via a skin builtin ?
3) If you use a thumbstick it calls onAction repeatedly, I have to set a 'ready' flag to ignore following unwanted onAction calls, setting 'ready' ok when processing of the first onAction() is complete.
Is this the correct behaviour ?
These question have come about as I'm updating more of my scripts on be XML based.
Anyone help ?
BBB
When using WindowXML or DialogXML and their onAction()
1) against the param 'action', should I be trapping action.getId() or just acting purely upon action.getButtonCode() ?
I ask as the thumb sticks don't seem consotent in their actionID reporting.
eg
left stick gives no actionID (0) AND a buttonCode in (280, 281, 282, 283)
for right thumb stick, actionID in (88, 89, 124, 125) AND a buttonCode in (266, 267, 268, 269)
so, why no actionID for left thumb stick ?
2) When onAction() traps a buttonCode for right thumb stick UP or DOWN and does <my own action> it still causes the volume control to be displayed.
How can I prevent the volume control from receiving an action?
Can it be disabled via a skin builtin ?
3) If you use a thumbstick it calls onAction repeatedly, I have to set a 'ready' flag to ignore following unwanted onAction calls, setting 'ready' ok when processing of the first onAction() is complete.
Is this the correct behaviour ?
These question have come about as I'm updating more of my scripts on be XML based.
Anyone help ?
BBB