Rex's plugins for Construct2
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About

rex_tilt2arrowKey

Plugin, ACE table, Discussion thread
Dependence: rex_touchwrap plugin

Introduction
Get arrow key event from tilt's beta and gamma input.

Usage
Sample capx
Prepare
Put rex_touchwrap plugin into project first.
Arrow-key events
Conditions in "Pressd", or "Released" categories will be triggered when tilting the device.
Rotate angle, and ZERO angle
The rotate angle is related to a ZERO angle set by "Calibration" in properties table, or "Action:Calibration". i.e.
rotate angle = tilting angle - ZERO angle
User could get ZERO angle by "Expression:ZEROUD", or "Expression:ZEROLR". And get current rotate angle by "Expression:RotateUD" or "Expression:RotateLR" for up-down or left-right side.
Dead zone
The rotate angle is judged to be a key-down if it is larger then a specific angle set by "Sensitivity" in properties table, or "Action:Set sensitivity angle".

Create a free web site with Weebly
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About