Announcement

Collapse
No announcement yet.

How to get xbox 360 controller analog stick values for flash

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to get xbox 360 controller analog stick values for flash

    Please help!

    how to get value for xbox 360 controller analog axis values to be used in flash for scaleform....please help me in this .....

    m making a in-game mini game, for which i need left analog stick values.

    #2
    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:

    Code:
        AddCaptureKey('XboxTypeS_LeftX');
        AddFocusIgnoreKey('XboxTypeS_Start');
    The Controls

    XboxTypeS_LeftX
    XboxTypeS_RightX
    XboxTypeS_LeftY
    XboxTypeS_RightY

    XboxTypeS_DPad_Left
    XboxTypeS_DPad_Right
    XboxTypeS_DPad_Up
    XboxTypeS_DPad_Down

    XboxTypeS_A
    XboxTypeS_B
    XboxTypeS_Y
    XboxTypeS_X

    XboxTypeS_Start
    XboxTypeS_Back

    XboxTypeS_LeftShoulder
    XboxTypeS_RightShoulder

    XboxTypeS_LeftTrigger
    XboxTypeS_RightTrigger

    XboxTypeS_LeftThumbstick
    XboxTypeS_RightThumbstick

    And also...

    Gamepad_LeftStick_Left
    Gamepad_LeftStick_Right
    Gamepad_LeftStick_Up
    Gamepad_LeftStick_Down

    Gamepad_RightStick_Left
    Gamepad_RightStick_Right
    Gamepad_RightStick_Up
    Gamepad_RightStick_Down

    Flash ASCII Code Values


    With the exception of the right analog stick, you can listen for controller input in Flash as well. See this post (http://forums.epicgames.com/showthre...1#post27828371) for details on how to listen for keyboard/controller input in Flash. The ASCII codes to listen for are:

    Left Analog Stick & D-Pad (Left): 37
    Left Analog Stick & D-Pad (Up): 38
    Left Analog Stick & D-Pad (Right): 39
    Left Analog Stick & D-Pad (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

    Comment


      #3
      thanks for help, Matt Doyle...its really appreciable

      Comment

      Working...
      X