Cogs.Core
WindowsGamepad.h
1#pragma once
2
3#include <array>
4
5namespace Cogs {
6 namespace Core {
7 class ViewContext;
8 }
9
10 namespace Platform {
11 class GamepadHandler {
12 public:
13 void initialize(Core::ViewContext* viewContext);
14 void update();
15
16 private:
17 const int Disconnected = -1;
18 const int NoMapping = 0;
19 const int Connected = 1;
20
21 const double checkInterval = 1.0;
22
23 std::array<size_t, 4> mapping = {};
24 std::array<double, 4> checkedTime = {};
25
26 Core::ViewContext* view = nullptr;
27 };
28 }
29}
Contains all Cogs related functionality.
Definition: FieldSetter.h:23