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