Sorry to cut into the discussion but wouldn't it be simpler to rewrite this init_raw_mouse function to do the following instead of the "LoadLibrary" part?
_RRID = RegisterRawInputDevices;
if (!_RRID) return 2;
_GRIDL = GetRawInputDeviceList;
if (!_GRIDL) return 3;
_GRIDIA = GetRawInputDeviceInfoA;
if (!_GRIDIA) return 33;
_GRID = GetRawInputData;
if (!_GRID) return 4;
_RRID = RegisterRawInputDevices;
if (!_RRID) return 2;
_GRIDL = GetRawInputDeviceList;
if (!_GRIDL) return 3;
_GRIDIA = GetRawInputDeviceInfoA;
if (!_GRIDIA) return 33;
_GRID = GetRawInputData;
if (!_GRID) return 4;
To copy to clipboard, switch view to plain text mode
The rest of the code could stay the same.
Bookmarks