Class: $.InputDelegate
- Inherits:
-
WatchUi.BehaviorDelegate
-
WatchUi.BehaviorDelegate
-
Overview
Handles the behavior / input events
Instance Member Summary collapse
- _buttonsExpected as System.ButtonInputs or Null
- _buttonsPressed as Lang.Number or Null
- _lastBehavior as $.Behavior or Null
- _lastKey as WatchUi.Key or Null
- _parentView as $.InputView
Instance Method Summary collapse
-
getButton(key as WatchUi.Key) as $.Button
Find the button that corresponds to the given key and return whether there are buttons that haven't been pressed.
-
getButtonBit(key as WatchUi.Key) as System.ButtonInputs or Null
Get the button input that corresponds to the given key enum.
-
getKeyAction(key as WatchUi.Key) as $.Action or Null
Get the action enum corresponding to the given key enum.
-
initialize(view as $.InputView)
Constructor.
-
onBack() as Lang.Boolean
Handle the back event.
-
onHold(evt as WatchUi.ClickEvent) as Lang.Boolean
Handle the touch screen hold event.
-
onKey(evt as WatchUi.KeyEvent) as Lang.Boolean
Handle a physical button being pressed and released.
-
onKeyPressed(evt as WatchUi.KeyEvent) as Lang.Boolean
Handle a physical button being pressed.
-
onKeyReleased(evt as WatchUi.KeyEvent) as Lang.Boolean
Handle a physical button being released.
-
onMenu() as Lang.Boolean
Handle the menu event.
-
onNextMode() as Lang.Boolean
Handle the next event.
-
onNextPage() as Lang.Boolean
Handle going to the next view.
-
onPreviousMode() as Lang.Boolean
Handle the previous event.
-
onPreviousPage() as Lang.Boolean
Handle going to the previous view.
-
onRelease(evt as WatchUi.ClickEvent) as Lang.Boolean
Handle the touch screen release event.
-
onSelect() as Lang.Boolean
Handle the select button.
-
onSwipe(evt as WatchUi.SwipeEvent) as Lang.Boolean
Handle the touch screen swipe event.
-
onTap(evt as WatchUi.ClickEvent) as Lang.Boolean
Handle a screen tap event.
Instance Attribute Details
var _buttonsExpected as System.ButtonInputs or Null
var _buttonsPressed as Lang.Number or Null
var _lastBehavior as $.Behavior or Null
var _lastKey as WatchUi.Key or Null
var _parentView as $.InputView
Instance Method Details
getButton(key as WatchUi.Key) as $.Button
Find the button that corresponds to the given key and return whether there are buttons that haven't been pressed
getButtonBit(key as WatchUi.Key) as System.ButtonInputs or Null
Get the button input that corresponds to the given key enum
getKeyAction(key as WatchUi.Key) as $.Action or Null
Get the action enum corresponding to the given key enum
initialize(view as $.InputView)
Constructor
onBack() as Lang.Boolean
Handle the back event
onHold(evt as WatchUi.ClickEvent) as Lang.Boolean
Handle the touch screen hold event
onKey(evt as WatchUi.KeyEvent) as Lang.Boolean
Handle a physical button being pressed and released
onKeyPressed(evt as WatchUi.KeyEvent) as Lang.Boolean
Handle a physical button being pressed
onKeyReleased(evt as WatchUi.KeyEvent) as Lang.Boolean
Handle a physical button being released
onMenu() as Lang.Boolean
Handle the menu event
onNextMode() as Lang.Boolean
Handle the next event
onNextPage() as Lang.Boolean
Handle going to the next view
onPreviousMode() as Lang.Boolean
Handle the previous event
onPreviousPage() as Lang.Boolean
Handle going to the previous view
onRelease(evt as WatchUi.ClickEvent) as Lang.Boolean
Handle the touch screen release event
onSelect() as Lang.Boolean
Handle the select button
onSwipe(evt as WatchUi.SwipeEvent) as Lang.Boolean
Handle the touch screen swipe event
onTap(evt as WatchUi.ClickEvent) as Lang.Boolean
Handle a screen tap event