mirror of
https://github.com/aap/librw.git
synced 2024-11-24 20:55:41 +00:00
fixed build for linux
This commit is contained in:
parent
70114f8e3e
commit
4f5687dd2e
@ -152,7 +152,7 @@ keypress(GLFWwindow *window, int key, int scancode, int action, int mods)
|
|||||||
static void
|
static void
|
||||||
charinput(GLFWwindow *window, unsigned int c)
|
charinput(GLFWwindow *window, unsigned int c)
|
||||||
{
|
{
|
||||||
EventHandler(CHARINPUT, (void*)c);
|
EventHandler(CHARINPUT, (void*)(uintptr)c);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -192,7 +192,7 @@ ImGuiEventHandler(sk::Event e, void *param)
|
|||||||
io.KeysDown[c] = 0;
|
io.KeysDown[c] = 0;
|
||||||
return EVENTPROCESSED;
|
return EVENTPROCESSED;
|
||||||
case CHARINPUT:
|
case CHARINPUT:
|
||||||
c = (uint)param;
|
c = (uint)(uintptr)param;
|
||||||
io.AddInputCharacter((unsigned short)c);
|
io.AddInputCharacter((unsigned short)c);
|
||||||
return EVENTPROCESSED;
|
return EVENTPROCESSED;
|
||||||
case MOUSEMOVE:
|
case MOUSEMOVE:
|
||||||
|
Loading…
Reference in New Issue
Block a user