Karma Engine
Loading...
Searching...
No Matches
MacInput.h
1#pragma once
2
3#include "Karma/Input.h"
4
5namespace Karma
6{
7
9 {
10 MacInputData() {}
11 Input::EventCallbackFn EventCallback;
12 };
13
14 class KARMA_API MacInput : public Input
15 {
16 public:
17 MacInput();
18
19 void SetEventCallback(const EventCallbackFn& callback, Window* window) override;
20
21 protected:
22 virtual bool IsKeyPressedImpl(int keycode) override;
23 virtual bool IsMouseButtonPressedImpl(int button) override;
24 virtual bool IsMouseButtonReleasedImpl(int button) override;
25 virtual bool IsControllerButtonPressedImpl(int button, int cID) override;
26 virtual float ControllerAxisPivotValImpl(int axis, int cID) override;
27
28 virtual std::pair<float, float> GetMousePositionImpl() override;
29 virtual float GetMouseXImpl() override;
30 virtual float GetMouseYImpl() override;
31
32 // Need to hook GLFW specific calls
33
34 MacInputData m_Data;
35 };
36
37}
Definition Input.h:73
Definition MacInput.h:15
Definition Window.h:27
Definition Input.h:25
Definition MacInput.h:9