Skip to content

Middleware GameController Properties

Nico Boettcher edited this page Dec 21, 2016 · 2 revisions

Middleware GameController Properties

Properties File(gamecontroller.properties)

gcHost (String)

The game controller's host name

  • Default-Value: 127.0.0.1
  • Example: gcHost=localhost

gcPort (uint16)

The game controller's port the application connects to

  • Default-Value: 6524
  • Example: gcPort=6524

directionControlsSwThresholdValue (int32)

Threshold value used for sideways direction controls. Sensor values delta has to be at least that high to activate a key.

The bigger the threshold value, the harder it is to press a key. Negative values reverses the controls.

  • Default-Value: 150
  • Example: directionControlsSwThresholdValue=150

directionControlsFbThresholdValue (int32)

Threshold value used for forward and backward direction controls. Sensor values delta has to be at least that high to activate a key.

The bigger the threshold value, the harder it is to press a key.

  • Default-Value: 150
  • Example: directionControlsFbThresholdValue=150

keyForward (String)

The keycode (decimal or hexadecimal prepended with '0x') or name of a key for forward movement.

  • Default-Value: ARROW_UP
  • Example:
#All three definitions are equal
keyForward=ARROW_UP
keyForward=218
keyForward=0xDA

keyBackward (String)

The keycode (decimal or hexadecimal prepended with '0x') or name of a key for forward movement.

  • Default-Value: ARROW_UP
  • Example:
#All three definitions are equal
keyForward=ARROW_DOWN
keyForward=217
keyForward=0xD9

keyLeft (String)

The keycode (decimal or hexadecimal prepended with '0x') or name of a key for forward movement.

  • Default-Value: ARROW_LEFT
  • Example:
#All three definitions are equal
keyForward=ARROW_LEFT
keyForward=216
keyForward=0xD8

keyRight (String)

The keycode (decimal or hexadecimal prepended with '0x') or name of a key for forward movement.

  • Default-Value: ARROW_RIGHT
  • Example:
#All three definitions are equal
keyForward=ARROW_RIGHT
keyForward=215
keyForward=0xD7

keyHop (String)

The keycode (decimal or hexadecimal prepended with '0x') or name of a key for forward movement.

  • Default-Value: SPACE
  • Example:
#All three definitions are equal
keyForward=SPACE
keyForward=32
keyForward=0x20

#Example file gamcontroller.properties

gcHost=localhost
gcPort=6524
directionControlsSwThresholdValue=150
directionControlsFbThresholdValue=150
keyForward=ARROW_UP
keyBackward=ARROW_DOWN
keyLeft=ARROW_LEFT
keyRight=ARROW_RIGHT
keyHop=SPACE
Clone this wiki locally