Method | Description | |
---|---|---|
CheckKeyTrapping ( LuaState luaState ) : KEY |
Returns the last key captured by key trapping.
|
|
GetCursorPos ( LuaState luaState ) : double>.Tuple |
Returns the cursor's position on the screen.
|
|
GetCursorPos ( LuaState luaState, double &mouseX, double &mouseY ) : void |
Returns the cursor's position on the screen.
|
|
GetKeyName ( LuaState luaState, BUTTON button ) : string |
Gets the name of the button index.
|
|
IsButtonDown ( LuaState luaState, BUTTON button ) : bool |
Gets whether the specified button code is down.
|
|
IsControlDown ( LuaState luaState ) : bool |
Returns whether a control key is being pressed.
|
|
IsKeyDown ( LuaState luaState, KEY key ) : bool |
Gets whether a key is down.
|
|
IsKeyTrapping ( LuaState luaState ) : bool |
Returns whether key trapping is activate and the next key press will be captured.
|
|
IsMouseDown ( LuaState luaState, MOUSE mouseKey ) : bool |
Gets whether a mouse button is down.
|
|
IsShiftDown ( LuaState luaState ) : bool |
Gets whether a shift key is being pressed.
|
|
LookupBinding ( LuaState luaState, string binding, bool exact = false ) : string |
Gets the match uppercase key for the specified binding.
|
|
LookupKeyBinding ( LuaState luaState, KEY key ) : string |
Returns the bind string that the given key is bound to.
|
|
SetCursorPos ( LuaState luaState, double mouseX, double mouseY ) : void |
Sets the cursor's position on the screen, relative to the topleft corner of the window.
|
|
StartKeyTrapping ( LuaState luaState ) : void |
Starts key trap.
|
|
WasKeyPressed ( LuaState luaState, KEY key ) : bool |
Returns whether a key was initially pressed in the same frame this function was called.
|
|
WasKeyReleased ( LuaState luaState, KEY key ) : bool |
Returns whether a key was released in the same frame this function was called.
|
|
WasKeyTyped ( LuaState luaState, KEY key ) : bool |
Returns whether the key is being held down or not.
|
|
WasMouseDoublePressed ( LuaState luaState, MOUSE button ) : bool |
Returns whether a mouse key was double pressed in the same frame this function was called.
|
|
WasMousePressed ( LuaState luaState, MOUSE button ) : bool |
Returns whether a mouse key was initially pressed in the same frame this function was called.
|
public static CheckKeyTrapping ( LuaState luaState ) : KEY | ||
luaState | LuaState | Pointer to lua_State struct. |
return | KEY |
public static GetCursorPos ( LuaState luaState ) : double>.Tuple |
||
luaState | LuaState | Pointer to lua_State struct. |
return | double>.Tuple |
public static GetCursorPos ( LuaState luaState, double &mouseX, double &mouseY ) : void | ||
luaState | LuaState | Pointer to lua_State struct. |
mouseX | double | Mouse X coordinate. |
mouseY | double | Mouse Y coordinate. |
return | void |
public static GetKeyName ( LuaState luaState, BUTTON button ) : string | ||
luaState | LuaState | Pointer to lua_State struct. |
button | BUTTON | The button. |
return | string |
public static IsButtonDown ( LuaState luaState, BUTTON button ) : bool | ||
luaState | LuaState | Pointer to lua_State struct. |
button | BUTTON | The button, valid values are in the range of |
return | bool |
public static IsControlDown ( LuaState luaState ) : bool | ||
luaState | LuaState | Pointer to lua_State struct. |
return | bool |
public static IsKeyDown ( LuaState luaState, KEY key ) : bool | ||
luaState | LuaState | Pointer to lua_State struct. |
key | KEY | The key. |
return | bool |
public static IsKeyTrapping ( LuaState luaState ) : bool | ||
luaState | LuaState | Pointer to lua_State struct. |
return | bool |
public static IsMouseDown ( LuaState luaState, MOUSE mouseKey ) : bool | ||
luaState | LuaState | Pointer to lua_State struct. |
mouseKey | MOUSE | The mouse key. |
return | bool |
public static IsShiftDown ( LuaState luaState ) : bool | ||
luaState | LuaState | Pointer to lua_State struct. |
return | bool |
public static LookupBinding ( LuaState luaState, string binding, bool exact = false ) : string | ||
luaState | LuaState | Pointer to lua_State struct. |
binding | string | The binding name. |
exact | bool | True if the binding should match exactly. |
return | string |
public static LookupKeyBinding ( LuaState luaState, KEY key ) : string | ||
luaState | LuaState | Pointer to lua_State struct. |
key | KEY | The key. |
return | string |
public static SetCursorPos ( LuaState luaState, double mouseX, double mouseY ) : void | ||
luaState | LuaState | Pointer to lua_State struct. |
mouseX | double | X coordinate for mouse position. |
mouseY | double | Y coordinate for mouse position. |
return | void |
public static StartKeyTrapping ( LuaState luaState ) : void | ||
luaState | LuaState | Pointer to lua_State struct. |
return | void |
public static WasKeyPressed ( LuaState luaState, KEY key ) : bool | ||
luaState | LuaState | Pointer to lua_State struct. |
key | KEY | The key. |
return | bool |
public static WasKeyReleased ( LuaState luaState, KEY key ) : bool | ||
luaState | LuaState | Pointer to lua_State struct. |
key | KEY | The key. |
return | bool |
public static WasKeyTyped ( LuaState luaState, KEY key ) : bool | ||
luaState | LuaState | Pointer to lua_State struct. |
key | KEY | The key. |
return | bool |
public static WasMouseDoublePressed ( LuaState luaState, MOUSE button ) : bool | ||
luaState | LuaState | Pointer to lua_State struct. |
button | MOUSE | The mouse button to test. |
return | bool |
public static WasMousePressed ( LuaState luaState, MOUSE button ) : bool | ||
luaState | LuaState | Pointer to lua_State struct. |
button | MOUSE | The mouse button to test. |
return | bool |