TriEngine
v0.0.16
General-purpose engine in C#/OpenGL
|
Used as a fallback InputManager object when the service locator fails to find one. More...
Public Member Functions | |
void | Update () |
Updates the input manager, refreshing all current and previous states. More... | |
bool | IsKeyUp (Key key) |
Returns whether or not the specified key is currently unpressed. More... | |
bool | IsKeyDown (Key key) |
Returns whether or not the specified key is currently being pressed. More... | |
bool | KeyPressed (Key key) |
Returns whether or not the specified key has been pressed. More... | |
bool | KeyReleased (Key key) |
Returns whether or not the specified key has been released. More... | |
bool | IsMouseUp (MouseButton button) |
Returns whether or not the specified mouse button is currently unpressed. More... | |
bool | IsMouseDown (MouseButton button) |
Returns whether or not the specified mouse button is currently being pressed. More... | |
bool | MousePressed (MouseButton button) |
Returns whether or not the specified mouse button has been pressed. More... | |
bool | MouseReleased (MouseButton button) |
Returns whether or not the specified mouse button has been released. More... | |
bool | IsWheelUp () |
Returns whether the mouse wheel was scrolled up. More... | |
bool | IsWheelDown () |
Returns whether the mouse wheel was scrolled down. More... | |
bool | IsWheelChanged () |
Returns whether the mouse wheel scrolled at all. More... | |
int | WheelChange () |
Returns the mouse wheel's change in value. More... | |
Properties | |
int | MouseX [get] |
int | MouseY [get] |
Point< int > | MousePosition [get] |
int | MouseWheelValue [get] |
bool | this[Key key] [get] |
bool | this[MouseButton button] [get] |
Properties inherited from TriDevs.TriEngine.Input.IInputManager | |
int | MouseX [get] |
Gets the absolute X position of the pointer, in window pixel coordinates. More... | |
int | MouseY [get] |
Gets the absolute Y position of the pointer, in window pixel coordinates. More... | |
Point< int > | MousePosition [get] |
Gets a Point representing the position of the mouse pointer, in window pixel coordinates. More... | |
int | MouseWheelValue [get] |
Gets the current value of the mouse wheel. More... | |
bool | this[Key key] [get] |
Gets a boolean value indicating whether the specified OpenTK.Input.Key is pressed. More... | |
bool | this[MouseButton button] [get] |
Gets a boolean value indicating whether the specified OpenTK.Input.MouseButton is pressed. More... | |
Events | |
KeyDownEventHandler | KeyDown |
Raised when a key is pressed down. More... | |
KeyUpEventHandler | KeyUp |
Raised when a key is released. More... | |
KeyPressEventHandler | KeyPress |
Raised when a character is typed. More... | |
MouseDownEventHandler | MouseDown |
Raised when a mouse button is pressed down. More... | |
MouseUpEventHandler | MouseUp |
Raised when a mouse button is released. More... | |
MouseWheelChangedEventHandler | WheelChanged |
Raised when the mouse wheel value changes. More... | |
MouseWheelDownEventHandler | WheelDown |
Raised when the mouse wheel is scrolled downwards. More... | |
MouseWheelUpEventHandler | WheelUp |
Raised when the mouse wheel is scrolled upwards. More... | |
Events inherited from TriDevs.TriEngine.Input.IInputManager | |
KeyDownEventHandler | KeyDown |
Raised when a key is pressed down. More... | |
KeyUpEventHandler | KeyUp |
Raised when a key is released. More... | |
KeyPressEventHandler | KeyPress |
Raised when a character is typed. More... | |
MouseDownEventHandler | MouseDown |
Raised when a mouse button is pressed down. More... | |
MouseUpEventHandler | MouseUp |
Raised when a mouse button is released. More... | |
MouseWheelChangedEventHandler | WheelChanged |
Raised when the mouse wheel value changes. More... | |
MouseWheelDownEventHandler | WheelDown |
Raised when the mouse wheel is scrolled downwards. More... | |
MouseWheelUpEventHandler | WheelUp |
Raised when the mouse wheel is scrolled upwards. More... | |
Used as a fallback InputManager object when the service locator fails to find one.
bool TriDevs.TriEngine.Input.NullInputManager.IsKeyDown | ( | Key | key | ) |
Returns whether or not the specified key is currently being pressed.
key | Key to query for. |
Implements TriDevs.TriEngine.Input.IInputManager.
bool TriDevs.TriEngine.Input.NullInputManager.IsKeyUp | ( | Key | key | ) |
Returns whether or not the specified key is currently unpressed.
key | Key to query for. |
Implements TriDevs.TriEngine.Input.IInputManager.
bool TriDevs.TriEngine.Input.NullInputManager.IsMouseDown | ( | MouseButton | button | ) |
Returns whether or not the specified mouse button is currently being pressed.
button | The button to query for. |
Implements TriDevs.TriEngine.Input.IInputManager.
bool TriDevs.TriEngine.Input.NullInputManager.IsMouseUp | ( | MouseButton | button | ) |
Returns whether or not the specified mouse button is currently unpressed.
button | Button to query for. |
Implements TriDevs.TriEngine.Input.IInputManager.
bool TriDevs.TriEngine.Input.NullInputManager.IsWheelChanged | ( | ) |
Returns whether the mouse wheel scrolled at all.
Implements TriDevs.TriEngine.Input.IInputManager.
bool TriDevs.TriEngine.Input.NullInputManager.IsWheelDown | ( | ) |
Returns whether the mouse wheel was scrolled down.
Implements TriDevs.TriEngine.Input.IInputManager.
bool TriDevs.TriEngine.Input.NullInputManager.IsWheelUp | ( | ) |
Returns whether the mouse wheel was scrolled up.
Implements TriDevs.TriEngine.Input.IInputManager.
bool TriDevs.TriEngine.Input.NullInputManager.KeyPressed | ( | Key | key | ) |
Returns whether or not the specified key has been pressed.
Only returns true if the last state of the key was not pressed.
key | Key to query for. |
Implements TriDevs.TriEngine.Input.IInputManager.
bool TriDevs.TriEngine.Input.NullInputManager.KeyReleased | ( | Key | key | ) |
Returns whether or not the specified key has been released.
Only returns true if the last state of the key was pressed.
key | Key to query for. |
Implements TriDevs.TriEngine.Input.IInputManager.
bool TriDevs.TriEngine.Input.NullInputManager.MousePressed | ( | MouseButton | button | ) |
Returns whether or not the specified mouse button has been pressed.
Only returns true if the last state of the mouse button was not pressed.
button | Button to query for. |
Implements TriDevs.TriEngine.Input.IInputManager.
bool TriDevs.TriEngine.Input.NullInputManager.MouseReleased | ( | MouseButton | button | ) |
Returns whether or not the specified mouse button has been released.
Only returns true if the last state of the button was pressed.
button | The button to query for. |
Implements TriDevs.TriEngine.Input.IInputManager.
void TriDevs.TriEngine.Input.NullInputManager.Update | ( | ) |
Updates the input manager, refreshing all current and previous states.
Implements TriDevs.TriEngine.Input.IInputManager.
int TriDevs.TriEngine.Input.NullInputManager.WheelChange | ( | ) |
Returns the mouse wheel's change in value.
Implements TriDevs.TriEngine.Input.IInputManager.
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
KeyDownEventHandler TriDevs.TriEngine.Input.NullInputManager.KeyDown |
Raised when a key is pressed down.
This particular event is never raised, it's merely a placeholder in case a proper InputManager was not supplied.
KeyPressEventHandler TriDevs.TriEngine.Input.NullInputManager.KeyPress |
Raised when a character is typed.
This particular event is never raised, it's merely a placeholder in case a proper InputManager was not supplied.
KeyUpEventHandler TriDevs.TriEngine.Input.NullInputManager.KeyUp |
Raised when a key is released.
This particular event is never raised, it's merely a placeholder in case a proper InputManager was not supplied.
MouseDownEventHandler TriDevs.TriEngine.Input.NullInputManager.MouseDown |
Raised when a mouse button is pressed down.
This particular event is never raised, it's merely a placeholder in case a proper InputManager was not supplied.
MouseUpEventHandler TriDevs.TriEngine.Input.NullInputManager.MouseUp |
Raised when a mouse button is released.
This particular event is never raised, it's merely a placeholder in case a proper InputManager was not supplied.
MouseWheelChangedEventHandler TriDevs.TriEngine.Input.NullInputManager.WheelChanged |
Raised when the mouse wheel value changes.
This particular event is never raised, it's merely a placeholder in case a proper InputManager was not supplied.
MouseWheelDownEventHandler TriDevs.TriEngine.Input.NullInputManager.WheelDown |
Raised when the mouse wheel is scrolled downwards.
This particular event is never raised, it's merely a placeholder in case a proper InputManager was not supplied.
MouseWheelUpEventHandler TriDevs.TriEngine.Input.NullInputManager.WheelUp |
Raised when the mouse wheel is scrolled upwards.
This particular event is never raised, it's merely a placeholder in case a proper InputManager was not supplied.