libws libws
WSwan hardware library for the Wonderful toolchain
Loading...
Searching...
No Matches
keypad.h File Reference
#include <stdint.h>

Go to the source code of this file.

Macros

#define WS_KEY_Y4   0x0800
#define WS_KEY_Y3   0x0400
#define WS_KEY_Y2   0x0200
#define WS_KEY_Y1   0x0100
#define WS_KEY_X4   0x0080
#define WS_KEY_X3   0x0040
#define WS_KEY_X2   0x0020
#define WS_KEY_X1   0x0010
#define WS_KEY_B   0x0008
#define WS_KEY_A   0x0004
#define WS_KEY_START   0x0002
#define WS_KEY_PCV2_PASS   0x0800
#define WS_KEY_PCV2_CIRCLE   0x0400
#define WS_KEY_PCV2_CLEAR   0x0100
#define WS_KEY_PCV2_RIGHT   0x0080
#define WS_KEY_PCV2_ESC   0x0040
#define WS_KEY_PCV2_VIEW   0x0010
#define WS_KEY_PCV2_UP   0x0008
#define WS_KEY_PCV2_DOWN   0x0004
#define WS_KEY_PCV2_LEFT   0x0001

Functions

 __attribute__ ((no_assume_ds_data, no_assume_ss_data)) uint16_t ws_keypad_scan(void)
 Query the current state of the keypad.

Detailed Description

Functionality related to the keypad.

Definition in file keypad.h.