Core Native GBA 0.0.7
create your own game-engine with just lua for nitendo game boy advance console.
Loading...
Searching...
No Matches
pad.c File Reference
#include "core_native_gba.h"
Include dependency graph for pad.c:

Functions

static void key_update (lua_State *L, const char *const key, uint8_t value)
 
void native_pad_update (lua_State *L)
 

Variables

static uint16_t keys_current = 0
 
static uint16_t keys_old = 0
 
static const char *const key_bindings []
 

Function Documentation

◆ key_update()

static void key_update ( lua_State * L,
const char *const key,
uint8_t value )
static

◆ native_pad_update()

void native_pad_update ( lua_State * L)
  • 1 released
  • 0 pressing
Here is the call graph for this function:

Variable Documentation

◆ key_bindings

const char* const key_bindings[]
static
Initial value:
= {
"a",
"b",
"menu",
"menu",
"right",
"left",
"up",
"down",
"c",
"d"
}

◆ keys_current

uint16_t keys_current = 0
static

◆ keys_old

uint16_t keys_old = 0
static