UDN
Search public documentation:

GFxXBoxInput
日本語訳
中国翻译
한국어

Interested in the Unreal Engine?
Visit the Unreal Technology site.

Looking for jobs and company info?
Check out the Epic games site.

Questions about support via UDN?
Contact the UDN Staff

UE3 Home > User Interfaces & HUDs > Scaleform GFx > How to capture XBox360 input in Scaleform

How to capture XBox360 input in Scaleform


Overview


The XBox 360 controller values can be found in the DefaulInput.ini file, and you can also find some of them being used as an example in the GFxProjectedUI.uc UnrealScript class file (\Src\UTGame\Classes\)

In Kismet, simply enter the listed controller input value in the capture keys field, In UnrealScript use either AddCaptureKey or AddFocusIgnoreKey like so:

Unrealscript
AddCaptureKey('XboxTypeS_LeftX');
AddFocusIgnoreKey('XboxTypeS_Start');

The Controls


  • XboxTypeS_LeftX - Left Analogue Stick X Axis
  • XboxTypeS_RightX - Left Analogue Stick Y Axis
  • XboxTypeS_LeftY - Right Analogue Stick X Axis
  • XboxTypeS_RightY - Right Analogue Stick Y Axis
  • XboxTypeS_DPad_Left - DPad Left
  • XboxTypeS_DPad_Right - DPad Right
  • XboxTypeS_DPad_Up - DPad Up
  • XboxTypeS_DPad_Down - DPad Down
  • XboxTypeS_A - A Button
  • XboxTypeS_B - B Button
  • XboxTypeS_Y - Y Button
  • XboxTypeS_X - X Button
  • XboxTypeS_Start - Start Button
  • XboxTypeS_Back - Back Button
  • XboxTypeS_LeftShoulder - Left Shoulder
  • XboxTypeS_RightShoulder - Right Shoulder
  • XboxTypeS_LeftTrigger - Left Trigger
  • XboxTypeS_RightTrigger - Right Trigger
  • XboxTypeS_LeftThumbstick - Left Analogue Stick Button
  • XboxTypeS_RightThumbstick - Right Analogue Stick Button

  • Gamepad_LeftStick_Left - Left Analogue Stick Left
  • Gamepad_LeftStick_Right - Left Analogue Stick Right
  • Gamepad_LeftStick_Up - Left Analogue Stick Up
  • Gamepad_LeftStick_Down - Left Analogue Stick Down
  • Gamepad_RightStick_Left - Right Analogue Stick Left
  • Gamepad_RightStick_Right - Right Analogue Stick Right
  • Gamepad_RightStick_Up - Right Analogue Stick Up
  • Gamepad_RightStick_Down - Right Analogue Stick Down

Flash ASCII Code Values


With the exception of the right analog stick, you can listen for controller input in Flash as well. Click here for details on how to listen for keyboard/controller input in Flash. The ASCII codes to listen for are:

  • Left Analog Stick, DPad Left - 37
  • Left Analog Stick, DPad Up - 38
  • Left Analog Stick, DPad Right - 39
  • Left Analog Stick, DPad Down - 40
  • A - 96
  • B - 97
  • X - 98
  • Y - 99
  • Left Shoulder - 100
  • Left Trigger - 101
  • Left Analog Stick (Pressed) - 102
  • Right Shoulder - 103
  • Right Trigger - 104
  • Right Analog Stick (Pressed) - 105
  • Start - 106
  • Back - 107