TM Turbo  2016/03/25
TM Turbo docs
 All Classes Functions Variables
CInputPad Struct Reference

#include <Turbo.h>

Inheritance diagram for CInputPad:
CNod

Public Types

enum  EButton {
  Left, Right, Up, Down,
  A, B, X, Y,
  L1, R1, LeftStick, RightStick,
  Menu, View, LeftStick_Left, LeftStick_Right,
  LeftStick_Up, LeftStick_Down, RightStick_Left, RightStick_Right,
  RightStick_Up, RightStick_Down, L2, R2,
  None
}
 
enum  EPadType { Keyboard, Generic, XBox, PlayStation }
 

Public Member Functions

Void ClearRumble ()
 
Void AddRumble (Integer Duration, Real LargeMotor, Real SmallMotor)
 
Void SetColor (Vec3 Color)
 

Public Attributes

const Integer ControllerId
 
const Ident UserId
 
const EPadType Type
 
const Text ModelName
 
const Integer IdleDuration
 
const Integer Left
 
const Integer Right
 
const Integer Up
 
const Integer Down
 
const Integer A
 
const Integer B
 
const Integer X
 
const Integer Y
 
const Integer L1
 
const Integer R1
 
const Integer LeftStickBut
 
const Integer RightStickBut
 
const Integer Menu
 
const Integer View
 
const Real LeftStickX
 
const Real LeftStickY
 
const Real RightStickX
 
const Real RightStickY
 
const Real L2
 
const Real R2
 
const EButton[] ButtonEvents
 
- Public Attributes inherited from CNod
const Ident Id
 

Detailed Description

game controller.

Member Function Documentation

Void CInputPad::AddRumble ( Integer  Duration,
Real  LargeMotor,
Real  SmallMotor 
)

Duration = 0 –> forever.

Void CInputPad::SetColor ( Vec3  Color)

(only works on PS4.) set to (0,0,0) to reset back to default color.

Member Data Documentation

const Real CInputPad::L2

Values in range (0.000000-1.000000)

const Real CInputPad::LeftStickX

Values in range (-1.000000-1.000000)

const Real CInputPad::LeftStickY

Values in range (-1.000000-1.000000)

const Real CInputPad::R2

Values in range (0.000000-1.000000)

const Real CInputPad::RightStickX

Values in range (-1.000000-1.000000)

const Real CInputPad::RightStickY

Values in range (-1.000000-1.000000)


The documentation for this struct was generated from the following file: