Doc
Download
Forum

 

Fonction Key

key code of the gp32 :

key

left

down

right

up

L

B

A

R

Start

Select

code

1

2

4

8

16

32

64

128

256

512


key detection function :

char up_front(unsigned short key)

    this function return 1 when the key passing in argument was not active and is now active (up front)  :    ______-------


char down_front(unsigned short key)

     this function return 1 when the key passing in argument was active and is now not active (down front)  :    -------_____


 char continu_key(unsigned short key)

    this function return 1 if the key passing in argument was active and is now active :  --------------


char instant_key(unsigned short key)

    this function return 1 if the key passing in argument is actually active
    note : this function NOT refresh key code, it return if the key was active the last time refresh_key was using

void refresh_key(void)

    this function refresh the old and new key_code

void wait_key(unsigned short key)

    this function stop program until the key specified was not pressed


 

 

Gfx
Key
Map
Other
Palette