Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
8557 maxcodehac 1
#ifndef GP2X_H
2
#define GP2X_H
3
 
4
#include 
5
#include 
6
#include 
7
#include 
8
#include 
9
 
10
#include "wl_def.h"
11
 
12
#define GP2X_BUTTON_UP              (0)
13
#define GP2X_BUTTON_DOWN            (4)
14
#define GP2X_BUTTON_LEFT            (2)
15
#define GP2X_BUTTON_RIGHT           (6)
16
#define GP2X_BUTTON_UPLEFT          (1)
17
#define GP2X_BUTTON_UPRIGHT         (7)
18
#define GP2X_BUTTON_DOWNLEFT        (3)
19
#define GP2X_BUTTON_DOWNRIGHT       (5)
20
#define GP2X_BUTTON_CLICK           (18)
21
#define GP2X_BUTTON_A               (12)
22
#define GP2X_BUTTON_B               (13)
23
#define GP2X_BUTTON_X               (15)
24
#define GP2X_BUTTON_Y               (14)
25
#define GP2X_BUTTON_L               (11)
26
#define GP2X_BUTTON_R               (10)
27
#define GP2X_BUTTON_START           (8)
28
#define GP2X_BUTTON_SELECT          (9)
29
#define GP2X_BUTTON_VOLUP           (16)
30
#define GP2X_BUTTON_VOLDOWN         (17)
31
 
32
#define VOLUME_MIN 0
33
#define VOLUME_MAX 100
34
#define VOLUME_CHANGE_RATE 2
35
#define VOLUME_NOCHG 0
36
#define VOLUME_DOWN 1
37
#define VOLUME_UP 2
38
#define KEY_DOWN 1
39
#define KEY_UP 0
40
 
41
void GP2X_Init();
42
void GP2X_Shutdown();
43
void GP2X_StartMMUHack();
44
 
45
void GP2X_AdjustVolume( int direction );
46
void GP2X_ButtonDown( int button );
47
void GP2X_ButtonUp( int button );
48
void Screenshot( void );
49
void SetKeyboard( unsigned int key, int press );
50
 
51
#endif // GP2X_H