2010-05-02 23:27:30 +00:00
|
|
|
#ifndef rawinput_h__
|
|
|
|
#define rawinput_h__
|
|
|
|
|
|
|
|
#include "compat.h"
|
|
|
|
|
|
|
|
void RI_PollDevices();
|
|
|
|
|
|
|
|
uint8_t RI_MouseState( uint8_t Button );
|
|
|
|
|
|
|
|
int8_t RI_WheelState();
|
|
|
|
|
|
|
|
int32_t RI_CaptureInput(int32_t grab, HWND target);
|
|
|
|
|
2010-05-03 08:30:25 +00:00
|
|
|
#ifndef VK_LBUTTON
|
2010-05-02 23:27:30 +00:00
|
|
|
#define VK_LBUTTON 0x01
|
2010-05-03 08:30:25 +00:00
|
|
|
#endif
|
|
|
|
#ifndef VK_RBUTTON
|
2010-05-02 23:27:30 +00:00
|
|
|
#define VK_RBUTTON 0x02
|
2010-05-03 08:30:25 +00:00
|
|
|
#endif
|
|
|
|
#ifndef VK_CANCEL
|
2010-05-02 23:27:30 +00:00
|
|
|
#define VK_CANCEL 0x03
|
2010-05-03 08:30:25 +00:00
|
|
|
#endif
|
|
|
|
#ifndef VK_MBUTTON
|
2010-05-02 23:27:30 +00:00
|
|
|
#define VK_MBUTTON 0x04 /* NOT contiguous with L & RBUTTON */
|
2010-05-03 08:30:25 +00:00
|
|
|
#endif
|
2010-05-02 23:27:30 +00:00
|
|
|
|
|
|
|
// mouse states for RI_MouseState
|
|
|
|
|
|
|
|
#define BUTTON_PRESSED 0x01
|
|
|
|
#define BUTTON_RELEASED 0x02
|
|
|
|
#define BUTTON_HELD 0x03
|
|
|
|
|
|
|
|
#endif // rawinput_h__
|
|
|
|
|