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

Go to the source code of this file.

Functions

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

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,
int callback,
const char *const key,
uint8_t value )
static

Definition at line 19 of file keys.c.

◆ keys_callback_update()

void keys_callback_update ( lua_State * L,
int callback )
  • 1 released
  • 0 pressing

Definition at line 31 of file keys.c.

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"
}

Definition at line 6 of file keys.c.

◆ keys_current

uint16_t keys_current = 0
static

Definition at line 3 of file keys.c.

◆ keys_old

uint16_t keys_old = 0
static

Definition at line 4 of file keys.c.