LuaBox
Loading...
Searching...
No Matches
ButtonDown.h File Reference
#include "lua_include.h"
#include "global.h"
#include "buttons.h"

Go to the source code of this file.

Functions

int ButtonDown (lua_State *L_)
 Check if a button is held down.

Function Documentation

◆ ButtonDown()

int ButtonDown ( lua_State * L_)

Check if a button is held down.

Parameters
L_Lua state; expects first argument as string: "UP", "DOWN", "LEFT", "RIGHT", "SELECT", "GET", or "SET".
Returns
int Pushes 1 boolean to Lua stack: true if pressed, false otherwise.