Свойство | Тип | Описание | |
---|---|---|---|
modifiers | ModifierKeys | ||
useKeyboardEvents | bool | ||
useMouseEvents | bool |
Метод | Описание | |
---|---|---|
Capture ( ) : void |
Captures the state of all the input devices. This method captures the state of all input devices and stores it internally for use when the enquiry methods are next called. This is done to ensure that all input is captured at once and therefore combinations of input are not subject to time differences when methods are called. |
|
Dispose ( ) : void |
Called to destroy this input reader.
|
|
GetKeyChar ( KeyCodes keyCode, ModifierKeys modifiers ) : char |
Given a key code enum value, the corresponding character is returned.
|
|
Initialize ( Axiom.Graphics.RenderWindow parent, bool useKeyboard, bool useMouse, bool useGamepad, bool ownMouse ) : void |
Subclasses should initialize the underlying input subsystem using this method.
|
|
IsKeyPressed ( Axiom key ) : bool |
Used to check if a particular key was pressed during the last call to Capture.
|
|
IsMousePressed ( Axiom button ) : bool |
Returns true if the specified mouse button is currently down.
|
Метод | Описание | |
---|---|---|
KeyChanged ( KeyCodes key, bool down ) : void |
Helper method for running logic on a key change.
|
|
OnKeyDown ( |
Triggers the KeyDown event.
|
|
OnKeyUp ( |
Triggers the KeyUp event.
|
public static GetKeyChar ( KeyCodes keyCode, ModifierKeys modifiers ) : char | ||
keyCode | KeyCodes | |
modifiers | ModifierKeys | |
Результат | char |
public abstract Initialize ( Axiom.Graphics.RenderWindow parent, bool useKeyboard, bool useMouse, bool useGamepad, bool ownMouse ) : void | ||
parent | Axiom.Graphics.RenderWindow | Parent window that the input belongs to. |
useKeyboard | bool | |
useMouse | bool | |
useGamepad | bool | |
ownMouse | bool | /// If true, input will be taken over from the OS and exclusive to the window. /// If false, input will still be shared with other apps. /// |
Результат | void |
public abstract IsKeyPressed ( Axiom key ) : bool | ||
key | Axiom | |
Результат | bool |
public abstract IsMousePressed ( Axiom button ) : bool | ||
button | Axiom | Mouse button to query. |
Результат | bool |
protected KeyChanged ( KeyCodes key, bool down ) : void | ||
key | KeyCodes | Code of the key being changed |
down | bool | True if the key is being pressed down, false if being released. |
Результат | void |
protected OnKeyDown ( |
||
e | Event arguments. | |
Результат | void |
protected OnKeyUp ( |
||
e | Event arguments. | |
Результат | void |