Fix some prototypes for win32.raw32 emulation environments
This commit is contained in:
parent
252b3b918a
commit
d8526e672a
@ -440,7 +440,7 @@ typedef struct winPriv {
|
||||
uint16_t mousebuttons;
|
||||
GMouse *mouse;
|
||||
bool_t mouseenabled;
|
||||
void (*capfn)(HWND hWnd, GDisplay *g, uint16_t buttons, coord_t x, coord_t y);
|
||||
void (*capfn)(void * hWnd, GDisplay *g, uint16_t buttons, coord_t x, coord_t y);
|
||||
#endif
|
||||
#if GFX_USE_GINPUT && GINPUT_NEED_TOGGLE
|
||||
uint8_t toggles;
|
||||
@ -469,7 +469,7 @@ void gfxEmulatorSetParentWindow(void *hwnd) {
|
||||
void gfxEmulatorMouseEnable(GDisplay *g, bool_t enabled) {
|
||||
((winPriv *)g->priv)->mouseenabled = enabled;
|
||||
}
|
||||
void gfxEmulatorMouseCapture(GDisplay *g, void (*capfn)(HWND hWnd, GDisplay *g, uint16_t buttons, coord_t x, coord_t y)) {
|
||||
void gfxEmulatorMouseCapture(GDisplay *g, void (*capfn)(void * hWnd, GDisplay *g, uint16_t buttons, coord_t x, coord_t y)) {
|
||||
((winPriv *)g->priv)->capfn = capfn;
|
||||
}
|
||||
#endif
|
||||
|
@ -56,13 +56,13 @@ void gfxEmulatorSetParentWindow(void *hwnd);
|
||||
#if GINPUT_NEED_MOUSE
|
||||
// This function allows you to inject mouse events into the ugfx mouse driver
|
||||
void gfxEmulatorMouseInject(GDisplay *g, uint16_t buttons, coord_t x, coord_t y);
|
||||
|
||||
|
||||
// This function enables you to turn on/off normal mouse functions on a ugfx Win32 display window.
|
||||
void gfxEmulatorMouseEnable(GDisplay *g, bool_t enabled);
|
||||
|
||||
|
||||
// This function enables you to capture mouse events on a ugfx Win32 display window.
|
||||
// Passing NULL turns off the capture
|
||||
void gfxEmulatorMouseCapture(GDisplay *g, void (*capfn)(HWND hWnd, GDisplay *g, uint16_t buttons, coord_t x, coord_t y));
|
||||
void gfxEmulatorMouseCapture(GDisplay *g, void (*capfn)(void * hWnd, GDisplay *g, uint16_t buttons, coord_t x, coord_t y));
|
||||
#endif
|
||||
|
||||
#endif /* GFX_USE_GDISP */
|
||||
|
Loading…
Reference in New Issue
Block a user