~sircmpwn/xrgears

ref: 1ac9460a3fe49c9a47bc6d8262e124fd3d369758 xrgears/vitamin-k/input/vikInput.hpp -rw-r--r-- 457 bytes
1ac9460aDrew DeVault Add wayland-direct window mode 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
 * vitamin-k
 *
 * Copyright 2017-2018 Collabora Ltd.
 *
 * Authors: Lubosz Sarnecki <lubosz.sarnecki@collabora.com>
 * SPDX-License-Identifier: MIT
 */

#pragma once

namespace vik {
class Input {
 public:
  enum MouseButton {
    Left,
    Middle,
    Right
  };

  enum MouseScrollAxis {
    X,
    Y
  };

  enum Key {
    UNKNOWN,
    ESCAPE,
    SPACE,
    KPPLUS,
    KPMINUS,
    F1,
    W,
    A,
    S,
    D,
    P
  };
};
}  // namespace vik