diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-05-07 08:12:56 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-05-07 08:12:56 +0200 |
| commit | 6b02331dfe7c6d8290c136ce20b4a7c655b47aae (patch) | |
| tree | da414ee19018edaf1d37b8fd7a6e4fe1f86edecd /vkEngine/enums.cs | |
| parent | f3344a78e511213d235e4c91bf507264fd41ac0d (diff) | |
first tests with vkvg as backendvkvg
Diffstat (limited to 'vkEngine/enums.cs')
| -rw-r--r-- | vkEngine/enums.cs | 203 |
1 files changed, 203 insertions, 0 deletions
diff --git a/vkEngine/enums.cs b/vkEngine/enums.cs new file mode 100644 index 00000000..549d4401 --- /dev/null +++ b/vkEngine/enums.cs @@ -0,0 +1,203 @@ +// +// enums.cs +// +// Author: +// Copyright (c) 2013 Antonie Blom +// +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +using System; + +namespace vkglfw +{ + public enum VkPhysicalDeviceType { + Other = 0, + IntegratedGPU = 1, + DiscreteGPU = 2, + VirtualGPU = 3, + CPU = 4, + } + //taken from pencil.gaming (Copyright (c) 2013 Antonie Blom) + public enum KeyModifiers + { + Shift = 1 << 0, //1 + Control = 1 << 1, //2 + Alt = 1 << 2, //4 + Super = 1 << 3 //8 + } + public enum KeyAction { + Release = 0, + Press, + Repeat, + } + public enum MouseButton { + Button1 = 0, + Button2, + Button3, + Button4, + Button5, + Button6, + Button7, + Button8, + LeftButton = 0, + RightButton, + MiddleButton, + } + public enum Joystick { + Joystick1 = 0, + Joystick2, + Joystick3, + Joystick4, + Joystick5, + Joystick6, + Joystick7, + Joystick8, + Joystick9, + Joystick10, + Joystick11, + Joystick12, + Joystick13, + Joystick14, + Joystick15, + Joystick16, + } + public enum Key { + Space = 32, + Apostrophe = 39, + Comma = 44, + Minus, + Period, + Slash, + Zero, + One, + Two, + Three, + Four, + Five, + Six, + Seven, + Eight, + Nine, + Semicolon = 59, + Equal = 61, + A = 65, + B, + C, + D, + E, + F, + G, + H, + I, + J, + K, + L, + M, + N, + O, + P, + Q, + R, + S, + T, + U, + V, + W, + X, + Y, + Z, + LeftBracket, + Backslash, + RightBracket, + GraveAccent = 96, + World1 = 161, + World2, + Escape = 256, + Enter, + Tab, + Backspace, + Insert, + Delete, + Right, + Left, + Down, + Up, + PageUp, + PageDown, + Home, + End, + CapsLock = 280, + ScrollLock, + NumLock, + PrintScreen, + Pause, + F1 = 290, + F2, + F3, + F4, + F5, + F6, + F7, + F8, + F9, + F10, + F11, + F12, + F13, + F14, + F15, + F16, + F17, + F18, + F19, + F20, + F21, + F22, + F23, + F24, + F25, + KP0 = 320, + KP1, + KP2, + KP3, + KP4, + KP5, + KP6, + KP7, + KP8, + KP9, + KPDecimal, + KPDivide, + KPMultiply, + KPSubtract, + KPAdd, + KPEnter, + KPEqual, + LeftShift = 340, + LeftControl, + LeftAlt, + LeftSuper, + RightShift, + RightControl, + RightAlt, + RightSuper, + Menu, + } +} + |