C# Class Cascade.Controls

Show file Open project: RIT-Tool-Time/Cascade Class Usage Examples

Public Properties

Property Type Description
ScreenSize Vector2
controlMode int
jump bool
mouse Microsoft.Xna.Framework.Input.MouseState
mouseCB3 int
mouseLB3 int
mousePos Vector2
mouseRB3 int

Public Methods

Method Description
Controls ( ) : System
GetButton ( Buttons b ) : ControlState
GetButtonReleaseTime ( Buttons b ) : int
GetButtonTime ( Buttons b ) : int
GetKey ( Keys k ) : ControlState
GetKeyReleaseTime ( Keys k ) : int
GetKeyTime ( Keys k ) : int
getButton ( Buttons b ) : int
getButton ( String b ) : int
getButtonReleaseTime ( String s ) : int
getButtonTime ( String s ) : int
getKey ( Keys k ) : int
getKey ( String s ) : int
getKeyReleaseTime ( String s ) : int
getKeyTime ( String s ) : int
update ( ) : void
vibrate ( float intensity, float speed ) : void

Private Methods

Method Description
addButton ( Buttons b ) : void
addKey ( Keys k ) : void
intToState ( int i ) : ControlState

Method Details

Controls() public method

public Controls ( ) : System
return System

GetButton() public static method

public static GetButton ( Buttons b ) : ControlState
b Buttons
return ControlState

GetButtonReleaseTime() public static method

public static GetButtonReleaseTime ( Buttons b ) : int
b Buttons
return int

GetButtonTime() public static method

public static GetButtonTime ( Buttons b ) : int
b Buttons
return int

GetKey() public static method

public static GetKey ( Keys k ) : ControlState
k Keys
return ControlState

GetKeyReleaseTime() public static method

public static GetKeyReleaseTime ( Keys k ) : int
k Keys
return int

GetKeyTime() public static method

public static GetKeyTime ( Keys k ) : int
k Keys
return int

getButton() public method

public getButton ( Buttons b ) : int
b Buttons
return int

getButton() public method

public getButton ( String b ) : int
b String
return int

getButtonReleaseTime() public method

public getButtonReleaseTime ( String s ) : int
s String
return int

getButtonTime() public method

public getButtonTime ( String s ) : int
s String
return int

getKey() public method

public getKey ( Keys k ) : int
k Keys
return int

getKey() public method

public getKey ( String s ) : int
s String
return int

getKeyReleaseTime() public method

public getKeyReleaseTime ( String s ) : int
s String
return int

getKeyTime() public method

public getKeyTime ( String s ) : int
s String
return int

update() public method

public update ( ) : void
return void

vibrate() public method

public vibrate ( float intensity, float speed ) : void
intensity float
speed float
return void

Property Details

ScreenSize public static property

public static Vector2 ScreenSize
return Vector2

controlMode public property

public int controlMode
return int

jump public property

public bool jump
return bool

mouse public static property

public static MouseState,Microsoft.Xna.Framework.Input mouse
return Microsoft.Xna.Framework.Input.MouseState

mouseCB3 public property

public int mouseCB3
return int

mouseLB3 public property

public int mouseLB3
return int

mousePos public static property

public static Vector2 mousePos
return Vector2

mouseRB3 public property

public int mouseRB3
return int