C# Class Engine.GlobalInput

Exibir arquivo Open project: Radnen/sphere-sfml

Public Methods

Method Description
AddWindowHandlers ( Window wind ) : void
AreKeysLeft ( ) : bool
BindKey ( int code, string js_down, string js_up ) : void
GetJoystickAxis ( int id, int axis_id ) : double
GetKey ( ) : int
GetKeyString ( int key, bool shift ) : string
GetMouseWheelEvent ( ) : int
GetMouseX ( ) : int
GetMouseY ( ) : int
GetNumJoyStickButtons ( int id ) : int
GetNumJoySticks ( ) : int
GetNumJoystickAxes ( int id ) : int
GetNumMouseWheelEvents ( ) : int
GetTalkActivationButton ( ) : int
GetTalkActivationKey ( ) : int
IsAnyKeyPressed ( ) : bool
IsJoystickButtonPressed ( int id, int code ) : bool
IsKeyPressed ( int code ) : bool
IsMouseButtonPressed ( int code ) : bool
RemoveWindowHandlers ( Window wind ) : void
SetMousePosition ( int x, int y ) : void
SetMouseX ( int new_x ) : void
SetMouseY ( int new_y ) : void
SetTalkActivationButton ( int btn ) : void
SetTalkActivationKey ( int key ) : void
UnbindKey ( int code ) : void
window_Closed ( object sender, EventArgs e ) : void
window_KeyPressed ( object sender, KeyEventArgs e ) : void
window_KeyReleased ( object sender, KeyEventArgs e ) : void

Private Methods

Method Description
GlobalInput ( ) : System
window_MouseWheel ( object sender, MouseWheelEventArgs e ) : void

Method Details

AddWindowHandlers() public static method

public static AddWindowHandlers ( Window wind ) : void
wind SFML.Window.Window
return void

AreKeysLeft() public static method

public static AreKeysLeft ( ) : bool
return bool

BindKey() public static method

public static BindKey ( int code, string js_down, string js_up ) : void
code int
js_down string
js_up string
return void

GetJoystickAxis() public static method

public static GetJoystickAxis ( int id, int axis_id ) : double
id int
axis_id int
return double

GetKey() public static method

public static GetKey ( ) : int
return int

GetKeyString() public static method

public static GetKeyString ( int key, bool shift ) : string
key int
shift bool
return string

GetMouseWheelEvent() public static method

public static GetMouseWheelEvent ( ) : int
return int

GetMouseX() public static method

public static GetMouseX ( ) : int
return int

GetMouseY() public static method

public static GetMouseY ( ) : int
return int

GetNumJoyStickButtons() public static method

public static GetNumJoyStickButtons ( int id ) : int
id int
return int

GetNumJoySticks() public static method

public static GetNumJoySticks ( ) : int
return int

GetNumJoystickAxes() public static method

public static GetNumJoystickAxes ( int id ) : int
id int
return int

GetNumMouseWheelEvents() public static method

public static GetNumMouseWheelEvents ( ) : int
return int

GetTalkActivationButton() public static method

public static GetTalkActivationButton ( ) : int
return int

GetTalkActivationKey() public static method

public static GetTalkActivationKey ( ) : int
return int

IsAnyKeyPressed() public static method

public static IsAnyKeyPressed ( ) : bool
return bool

IsJoystickButtonPressed() public static method

public static IsJoystickButtonPressed ( int id, int code ) : bool
id int
code int
return bool

IsKeyPressed() public static method

public static IsKeyPressed ( int code ) : bool
code int
return bool

IsMouseButtonPressed() public static method

public static IsMouseButtonPressed ( int code ) : bool
code int
return bool

RemoveWindowHandlers() public static method

public static RemoveWindowHandlers ( Window wind ) : void
wind SFML.Window.Window
return void

SetMousePosition() public static method

public static SetMousePosition ( int x, int y ) : void
x int
y int
return void

SetMouseX() public static method

public static SetMouseX ( int new_x ) : void
new_x int
return void

SetMouseY() public static method

public static SetMouseY ( int new_y ) : void
new_y int
return void

SetTalkActivationButton() public static method

public static SetTalkActivationButton ( int btn ) : void
btn int
return void

SetTalkActivationKey() public static method

public static SetTalkActivationKey ( int key ) : void
key int
return void

UnbindKey() public static method

public static UnbindKey ( int code ) : void
code int
return void

window_Closed() public static method

public static window_Closed ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

window_KeyPressed() public static method

public static window_KeyPressed ( object sender, KeyEventArgs e ) : void
sender object
e SFML.Window.KeyEventArgs
return void

window_KeyReleased() public static method

public static window_KeyReleased ( object sender, KeyEventArgs e ) : void
sender object
e SFML.Window.KeyEventArgs
return void