summaryrefslogtreecommitdiffhomepage
path: root/project/vs2015.UWP/raylib.App.UWP/App.h
diff options
context:
space:
mode:
authorSam C <[email protected]>2018-01-12 20:56:35 -0800
committerSam C <[email protected]>2018-01-12 20:56:35 -0800
commit1f70a8984a4bb7b97783838d8a3675a087ada33a (patch)
tree0534ac268ce30eaf4c220ffd80e405af1cb53070 /project/vs2015.UWP/raylib.App.UWP/App.h
parentff984d13db6ad4c9347387e81587bf3666b877c0 (diff)
downloadraylib-1f70a8984a4bb7b97783838d8a3675a087ada33a.tar.gz
raylib-1f70a8984a4bb7b97783838d8a3675a087ada33a.zip
Add mouse input and revert keyboard to callback model
Mouse input is implemented, with all bells-and-whistles. This includes cursor locking and scroll wheel support. Keyboard input is reverted to a callback model to better reflect the existing architecture in "core.c"
Diffstat (limited to 'project/vs2015.UWP/raylib.App.UWP/App.h')
-rw-r--r--project/vs2015.UWP/raylib.App.UWP/App.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/project/vs2015.UWP/raylib.App.UWP/App.h b/project/vs2015.UWP/raylib.App.UWP/App.h
index 3f27eeb0..5b58528b 100644
--- a/project/vs2015.UWP/raylib.App.UWP/App.h
+++ b/project/vs2015.UWP/raylib.App.UWP/App.h
@@ -33,6 +33,14 @@ namespace raylibUWP
void OnDpiChanged(Windows::Graphics::Display::DisplayInformation^ sender, Platform::Object^ args);
void OnOrientationChanged(Windows::Graphics::Display::DisplayInformation^ sender, Platform::Object^ args);
+ // Input event handlers
+ void PointerPressed(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::PointerEventArgs^ args);
+ void PointerReleased(Windows::UI::Core::CoreWindow ^sender, Windows::UI::Core::PointerEventArgs^ args);
+ void PointerWheelChanged(Windows::UI::Core::CoreWindow ^sender, Windows::UI::Core::PointerEventArgs^ args);
+ void MouseMoved(Windows::Devices::Input::MouseDevice^ mouseDevice, Windows::Devices::Input::MouseEventArgs^ args);
+ void OnKeyDown(Windows::UI::Core::CoreWindow ^ sender, Windows::UI::Core::KeyEventArgs ^ args);
+ void OnKeyUp(Windows::UI::Core::CoreWindow ^ sender, Windows::UI::Core::KeyEventArgs ^ args);
+
private:
bool mWindowClosed;