LuaBox
Loading...
Searching...
No Matches
AnyButtonDown.h
Go to the documentation of this file.
1#pragma once
2
3#include "lua_include.h"
4#include "global.h"
5#include "buttons.h"
6
12
13int AnyButtonDown(lua_State* L_)
14{
15 lua_pushboolean(L_, buttons_read(UP) || buttons_read(DOWN) || buttons_read(LEFT) || buttons_read(RIGHT) || buttons_read(SET) || buttons_read(GET));
16
17 return 1;
18}
int AnyButtonDown(lua_State *L_)
Check if any button is currently pressed.
Definition AnyButtonDown.h:13