30 lines
625 B
C
30 lines
625 B
C
#ifndef DINPUT_H
|
|
#define DINPUT_H
|
|
|
|
typedef struct MouseData {
|
|
int x;
|
|
int y;
|
|
unsigned char buttons[2];
|
|
} MouseData;
|
|
|
|
typedef struct KeyboardData {
|
|
int key;
|
|
char down;
|
|
} KeyboardData;
|
|
|
|
bool directInputInit();
|
|
void directInputFree();
|
|
bool mouseDeviceAcquire();
|
|
bool mouseDeviceUnacquire();
|
|
bool mouseDeviceGetData(MouseData* mouseData);
|
|
bool keyboardDeviceAcquire();
|
|
bool keyboardDeviceUnacquire();
|
|
bool keyboardDeviceReset();
|
|
bool keyboardDeviceGetData(KeyboardData* keyboardData);
|
|
bool mouseDeviceInit();
|
|
void mouseDeviceFree();
|
|
bool keyboardDeviceInit();
|
|
void keyboardDeviceFree();
|
|
|
|
#endif /* DINPUT_H */
|