mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 09:21:36 +00:00
e665b96d1b
git-svn-id: https://svn.eduke32.com/eduke32@1627 1a8010ca-5511-0410-912e-c29ae57300e0
34 lines
630 B
C
34 lines
630 B
C
#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);
|
|
|
|
#ifndef VK_LBUTTON
|
|
#define VK_LBUTTON 0x01
|
|
#endif
|
|
#ifndef VK_RBUTTON
|
|
#define VK_RBUTTON 0x02
|
|
#endif
|
|
#ifndef VK_CANCEL
|
|
#define VK_CANCEL 0x03
|
|
#endif
|
|
#ifndef VK_MBUTTON
|
|
#define VK_MBUTTON 0x04 /* NOT contiguous with L & RBUTTON */
|
|
#endif
|
|
|
|
// mouse states for RI_MouseState
|
|
|
|
#define BUTTON_PRESSED 0x01
|
|
#define BUTTON_RELEASED 0x02
|
|
#define BUTTON_HELD 0x03
|
|
|
|
#endif // rawinput_h__
|
|
|