iOS Responsiveness
Posted: Fri Sep 16, 2016 8:46 pm
I am working on an update to an app used to evaluate the skills of nonspeaking persons who use assistive technology for communication. Often time, these individuals will have physical disabilities as well. So, there are options to activate a button on mouseDown, mouseUp or using scanning methods with an external switch. Buttons are grouped with a single group script. Switch scanning is managed in a card script and essentially sends the mouseUp message. If scanning is used, the group should not respond to mouse events. So, I need to screen for mouseUp, mouseDown or switch scanning.
This is the group script. It works pretty well on the desktop, but in the iOS simulator it doesn’t seem to be as responsive. Is there a better way to manage this? Thanks in advance for your help.
---cActivateOnRelease “true” is activate on mouseUp, "false" is activate on mouseDown. Response data is collected to fields "C_VI_XLarge" (correct answer) or "W_VI_XLarge" (wrong answer). cScanType indicates a switch is being used for access.
on mouseUp
If the cActivateOnRelease of this stack is "false" or the cScanType of this stack is not EMPTY then exit mouseUp
put the short name of the target into tButtonSelected
switch tButtonSelected
case "Correct"
add 1 to field "C_VI_XLarge" of card "RawDataCd" of stack "R_dataStack"
break
case "Button"
add 1 to field "W_VI_XLarge" of card "RawDataCd" of stack "R_dataStack"
break
end switch
goNextMkdCd
end mouseUp
on mouseDown
If the cActivateOnRelease of this stack is "true" or the cScanType of this stack is not EMPTY then exit mouseDown
put the short name of the target into tButtonSelected
switch tButtonSelected
case "Correct"
add 1 to field "C_VI_XLarge" of card "RawDataCd" of stack "R_dataStack"
break
case "Button"
add 1 to field "W_VI_XLarge" of card "RawDataCd" of stack "R_dataStack"
break
end switch
goNextMkdCd
end mouseDown
This is the group script. It works pretty well on the desktop, but in the iOS simulator it doesn’t seem to be as responsive. Is there a better way to manage this? Thanks in advance for your help.
---cActivateOnRelease “true” is activate on mouseUp, "false" is activate on mouseDown. Response data is collected to fields "C_VI_XLarge" (correct answer) or "W_VI_XLarge" (wrong answer). cScanType indicates a switch is being used for access.
on mouseUp
If the cActivateOnRelease of this stack is "false" or the cScanType of this stack is not EMPTY then exit mouseUp
put the short name of the target into tButtonSelected
switch tButtonSelected
case "Correct"
add 1 to field "C_VI_XLarge" of card "RawDataCd" of stack "R_dataStack"
break
case "Button"
add 1 to field "W_VI_XLarge" of card "RawDataCd" of stack "R_dataStack"
break
end switch
goNextMkdCd
end mouseUp
on mouseDown
If the cActivateOnRelease of this stack is "true" or the cScanType of this stack is not EMPTY then exit mouseDown
put the short name of the target into tButtonSelected
switch tButtonSelected
case "Correct"
add 1 to field "C_VI_XLarge" of card "RawDataCd" of stack "R_dataStack"
break
case "Button"
add 1 to field "W_VI_XLarge" of card "RawDataCd" of stack "R_dataStack"
break
end switch
goNextMkdCd
end mouseDown