rex_angle2ArrowkeyMap
Introduction
Mapping angle input to arrow key event.
Mapping angle input to arrow key event.
Usage
Sample capx
Sample capx
This plugin is similar to rex_dragarrowkey plugin. The different are -
- rex_dragarrowkey will detect dragging automatically. This plugin needs to set the angle and distance, which from origin to current point manually by "Action:Set input".
- rex_dragarrowkey will detect touch released automatically. This plugin needs to call "Action:Release", to simulate keys releasing.
Arrow-key events
- Call "Action:Set input" to set the angle and distance. Conditions in "Pressd", or "Released" categories will be triggered when the input distance is larger than sensitivity range set by "Sensitivity" in properties table.
- Call "Action:Release", to simulate keys releasing.
Direction
The dragging angle will be used to detect which key is down. The direction mode is set by "Directions" in properties table.
The dragging angle will be used to detect which key is down. The direction mode is set by "Directions" in properties table.
- Up & down
- Left & right
- 4 directions
- 8 directions
Virtual joysticks
Sample capx
Since the input of angle and distance is set manually, user could define the origin and current point by himself. For example, get angle and distance from touch area behavior, to make this touch area to be a virtual joystick.
Sample capx
Since the input of angle and distance is set manually, user could define the origin and current point by himself. For example, get angle and distance from touch area behavior, to make this touch area to be a virtual joystick.