This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
sample_code:img_toggle_button [2014/11/26 09:41] stevegarman mention OnTouch callbacks |
sample_code:img_toggle_button [2014/11/26 09:43] stevegarman correction |
||
---|---|---|---|
Line 7: | Line 7: | ||
The sample code passes one of each. | The sample code passes one of each. | ||
- | In case it is not obvious, the actual toggling is done in the OnTouchUp | + | In case it is not obvious, the actual toggling is done in the OnTouchDown |
You could move this to any of the OnTouch events but be aware that some of them (such as SetOnTouch) may fire more often than you expect. | You could move this to any of the OnTouch events but be aware that some of them (such as SetOnTouch) may fire more often than you expect. |