Skip to content

Commit

Permalink
small moving around
Browse files Browse the repository at this point in the history
  • Loading branch information
lightmanLP committed Feb 3, 2025
1 parent 116044c commit c29e039
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/graphic/Fast3D/gfx_dxgi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@
#define NANOSECOND_IN_SECOND 1000000000
#define _100NANOSECONDS_IN_SECOND 10000000

#ifndef HID_USAGE_PAGE_GENERIC
#define HID_USAGE_PAGE_GENERIC ((unsigned short)0x01)
#endif
#ifndef HID_USAGE_GENERIC_MOUSE
#define HID_USAGE_GENERIC_MOUSE ((unsigned short)0x02)
#endif

using namespace Microsoft::WRL; // For ComPtr

static struct {
Expand Down Expand Up @@ -543,14 +550,7 @@ void gfx_dxgi_init(const char* game_name, const char* gfx_api_name, bool start_i

DragAcceptFiles(dxgi.h_wnd, TRUE);

// Mouse init
#ifndef HID_USAGE_PAGE_GENERIC
#define HID_USAGE_PAGE_GENERIC ((unsigned short)0x01)
#endif
#ifndef HID_USAGE_GENERIC_MOUSE
#define HID_USAGE_GENERIC_MOUSE ((unsigned short)0x02)
#endif

// Mouse init
dxgi.raw_input_device[0].usUsagePage = HID_USAGE_PAGE_GENERIC;
dxgi.raw_input_device[0].usUsage = HID_USAGE_GENERIC_MOUSE;
dxgi.raw_input_device[0].dwFlags = RIDEV_INPUTSINK;
Expand Down

0 comments on commit c29e039

Please sign in to comment.