ManiaScript Reference  2019-05
CInputPad Struct Reference
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, Mouse, Generic, XBox,
  PlayStation, Vive
}
 

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 Enumeration Documentation

◆ EButton

Enumerator
Left 
Right 
Up 
Down 
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 

◆ EPadType

Enumerator
Keyboard 
Mouse 
Generic 
XBox 
PlayStation 
Vive 

Member Function Documentation

◆ AddRumble()

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

Duration = 0 –> forever.

◆ ClearRumble()

Void CInputPad::ClearRumble ( )

◆ SetColor()

Void CInputPad::SetColor ( Vec3  Color)

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

Member Data Documentation

◆ A

const Integer CInputPad::A

◆ B

const Integer CInputPad::B

◆ ButtonEvents

const EButton [] CInputPad::ButtonEvents

◆ ControllerId

const Integer CInputPad::ControllerId

◆ Down

const Integer CInputPad::Down

◆ IdleDuration

const Integer CInputPad::IdleDuration

◆ L1

const Integer CInputPad::L1

◆ L2

const Real CInputPad::L2

Values in range (0.000000-1.000000)

◆ Left

const Integer CInputPad::Left

◆ LeftStickBut

const Integer CInputPad::LeftStickBut

◆ LeftStickX

const Real CInputPad::LeftStickX

Values in range (-1.000000-1.000000)

◆ LeftStickY

const Real CInputPad::LeftStickY

Values in range (-1.000000-1.000000)

◆ Menu

const Integer CInputPad::Menu

◆ ModelName

const Text CInputPad::ModelName

◆ R1

const Integer CInputPad::R1

◆ R2

const Real CInputPad::R2

Values in range (0.000000-1.000000)

◆ Right

const Integer CInputPad::Right

◆ RightStickBut

const Integer CInputPad::RightStickBut

◆ RightStickX

const Real CInputPad::RightStickX

Values in range (-1.000000-1.000000)

◆ RightStickY

const Real CInputPad::RightStickY

Values in range (-1.000000-1.000000)

◆ Type

const EPadType CInputPad::Type

◆ Up

const Integer CInputPad::Up

◆ UserId

const Ident CInputPad::UserId

◆ View

const Integer CInputPad::View

◆ X

const Integer CInputPad::X

◆ Y

const Integer CInputPad::Y