Added hidden options to be able to define your own device delay before loading ART...
[open-ps2-loader.git] / include / pad.h
blob95c5f00e5646ab284ebb8183cfbfd2594b0dd911
1 #ifndef __PAD_H
2 #define __PAD_H
4 //PAD handling
6 #define KEY_LEFT 1
7 #define KEY_DOWN 2
8 #define KEY_RIGHT 3
9 #define KEY_UP 4
10 #define KEY_START 5
11 #define KEY_R3 6
12 #define KEY_L3 7
13 #define KEY_SELECT 8
14 #define KEY_SQUARE 9
15 #define KEY_CROSS 10
16 #define KEY_CIRCLE 11
17 #define KEY_TRIANGLE 12
18 #define KEY_R1 13
19 #define KEY_L1 14
20 #define KEY_R2 15
21 #define KEY_L2 16
23 int startPads();
24 int readPads();
25 void unloadPads();
27 int getKey(int num);
29 int getKeyOn(int num);
30 int getKeyOff(int num);
31 int getKeyPressed(int num);
33 /** Sets the repetition delay for the specified button
34 * @param button id (KEY_XXX values)
35 * @param btndelay the delay in miliseconds per repeat (clamped by framerate!) */
36 void setButtonDelay(int button, int btndelay);
38 /** Gets the repetition delay for the specified button */
39 int getButtonDelay(int button);
42 /** Store's the button delay into specified integer array (has to have 16 items) */
43 void padStoreSettings(int* buffer);
45 /** Restore's the button delay from specified integer array (has to have 16 items) */
46 void padRestoreSettings(int* buffer);
48 #endif