ManiaPlanet ManiaScript Reference 2019.11.19.1850
A ManiaScript Reference of the ManiaPlanet game.
Loading...
Searching...
No Matches
CInputPad Struct Reference

#include <doc.h>

Inheritance diagram for CInputPad:
[legend]

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

◆ AddRumble()

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

Duration = 0 --> forever.

◆ SetColor()

Void CInputPad::SetColor ( Vec3 Color)

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

Member Data Documentation

◆ L2

const Real CInputPad::L2

Values in range (0.000000-1.000000)

◆ LeftStickX

const Real CInputPad::LeftStickX

Values in range (-1.000000-1.000000)

◆ LeftStickY

const Real CInputPad::LeftStickY

Values in range (-1.000000-1.000000)

◆ R2

const Real CInputPad::R2

Values in range (0.000000-1.000000)

◆ RightStickX

const Real CInputPad::RightStickX

Values in range (-1.000000-1.000000)

◆ RightStickY

const Real CInputPad::RightStickY

Values in range (-1.000000-1.000000)


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