Class for querying player inputs. More...
Public Member Functions | |
bool | IsDown (uint button) |
Checks if a button is down. More... | |
bool | IsPressed (uint button) |
Checks if a button was pressed. More... | |
bool | IsReleased (uint button) |
Checks if a button was released. More... | |
float | GetAxis (uint axis) |
Gets the value of an axis. More... | |
ksMultiType | GetValue (uint id) |
Gets a value. More... | |
bool | IsValueChanged (uint id) |
Checks if a value changed on this input frame. More... | |
void | Use () |
Marks the input as used. More... | |
void | CleanUp () |
Clears the state and returns the object to the pool. More... | |
Properties | |
bool | IsUsed [get] |
Has this input been used? More... | |
Class for querying player inputs.
void KS.Reactor.ksInput.CleanUp | ( | ) |
Clears the state and returns the object to the pool.
It is recommended you call this when you are done with an input.
float KS.Reactor.ksInput.GetAxis | ( | uint | axis | ) |
Gets the value of an axis.
axis | Axis to get value for. |
ksMultiType KS.Reactor.ksInput.GetValue | ( | uint | id | ) |
Gets a value.
id | Id of value to get. |
bool KS.Reactor.ksInput.IsDown | ( | uint | button | ) |
Checks if a button is down.
button | Button to check. |
bool KS.Reactor.ksInput.IsPressed | ( | uint | button | ) |
Checks if a button was pressed.
This will be true for one frame when a button is pressed.
button | Button to check. |
bool KS.Reactor.ksInput.IsReleased | ( | uint | button | ) |
Checks if a button was released.
This will be true for one frame when a button is released.
button | Button to check. |
bool KS.Reactor.ksInput.IsValueChanged | ( | uint | id | ) |
Checks if a value changed on this input frame.
id | Id of value to check. |
void KS.Reactor.ksInput.Use | ( | ) |
Marks the input as used.
|
get |
Has this input been used?