1 /** 2 * Copyright: Copyright (C) 2018 Gabriel Gheorghe, All Rights Reserved 3 * Authors: $(Gabriel Gheorghe) 4 * License: $(LINK2 https://www.gnu.org/licenses/gpl-3.0.txt, GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007) 5 * Source: $(LINK2 https://github.com/GabyForceQ/LibertyEngine/blob/master/source/liberty/input/mouse/constants.d) 6 * Documentation: 7 * Coverage: 8 **/ 9 module liberty.input.mouse.constants; 10 11 import bindbc.glfw; 12 13 /** 14 * 15 **/ 16 enum byte MOUSE_BUTTONS = 3; 17 18 /** 19 * 20 **/ 21 struct MouseAxis {} 22 23 /** 24 * 25 **/ 26 enum MouseAction : ubyte { 27 /** 28 * 29 **/ 30 NONE, 31 32 /** 33 * 34 **/ 35 DOWN, 36 37 /** 38 * 39 **/ 40 UP, 41 42 /** 43 * 44 **/ 45 HOLD 46 } 47 48 /** 49 * 50 **/ 51 enum MouseButton : byte { 52 /** 53 * 54 **/ 55 LEFT = GLFW_MOUSE_BUTTON_1, 56 57 /** 58 * 59 **/ 60 RIGHT = GLFW_MOUSE_BUTTON_2, 61 62 /** 63 * 64 **/ 65 MIDDLE = GLFW_MOUSE_BUTTON_3 66 } 67 68 /** 69 * 70 **/ 71 enum CursorType : int { 72 /** 73 * 74 **/ 75 NORMAL = GLFW_CURSOR_NORMAL, 76 77 /** 78 * 79 **/ 80 HIDDEN = GLFW_CURSOR_HIDDEN, 81 82 /** 83 * 84 **/ 85 DISABLED = GLFW_CURSOR_DISABLED 86 }