libwwcl libwwcl
WWitch compatibility layer for the Wonderful toolchain
Loading...
Searching...
No Matches
key.h File Reference
#include "types.h"

Go to the source code of this file.

Macros

#define KEY_Y4   0x0800
 
#define KEY_Y3   0x0400
 
#define KEY_Y2   0x0200
 
#define KEY_Y1   0x0100
 
#define KEY_X4   0x0080
 
#define KEY_X3   0x0040
 
#define KEY_X2   0x0020
 
#define KEY_X1   0x0010
 
#define KEY_B   0x0008
 
#define KEY_A   0x0004
 
#define KEY_START   0x0002
 
#define KEY_UP1   KEY_X1
 
#define KEY_RIGHT1   KEY_X2
 
#define KEY_DOWN1   KEY_X3
 
#define KEY_LEFT1   KEY_X4
 
#define KEY_UP2   KEY_Y1
 
#define KEY_RIGHT2   KEY_Y2
 
#define KEY_DOWN2   KEY_Y3
 
#define KEY_LEFT2   KEY_Y4
 

Functions

uint16_t key_press_check (void)
 
uint16_t key_hit_check (void)
 
uint16_t key_wait (void)
 
void key_set_repeat (uint8_t rate, uint8_t delay)
 
uint16_t key_hit_check_with_repeat (void)
 

Detailed Description

FreyaBIOS keypad calls.

Definition in file key.h.