aboutsummaryrefslogtreecommitdiff
path: root/src/sfml/window/keyboard.zig
diff options
context:
space:
mode:
authortslil clingman <>2021-10-30 16:54:03 -0400
committertslil clingman <>2021-10-30 16:56:41 -0400
commit6ead90c0f0e9b9a44c7c1f7137f437faa29fa750 (patch)
tree38cbaff4f606689a149865d5708dadac47ee43db /src/sfml/window/keyboard.zig
parent48dee0817f5fe8c09a085f0150e0c6b4a699ab7c (diff)
Switched to tracking zig-sfml-wrapper as submodule
Diffstat (limited to 'src/sfml/window/keyboard.zig')
-rw-r--r--src/sfml/window/keyboard.zig11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/sfml/window/keyboard.zig b/src/sfml/window/keyboard.zig
deleted file mode 100644
index 8e4e970..0000000
--- a/src/sfml/window/keyboard.zig
+++ /dev/null
@@ -1,11 +0,0 @@
-//! Give access to the real-time state of the keyboard.
-
-const sf = @import("../sfml_import.zig");
-
-/// Keycodes
-pub const KeyCode = enum(c_int) { Unknown = -1, A = 0, 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, Num0, Num1, Num2, Num3, Num4, Num5, Num6, Num7, Num8, Num9, Escape, LControl, LShift, LAlt, LSystem, RControl, RShift, RAlt, RSystem, Menu, LBracket, RBracket, Semicolon, Comma, Period, Quote, Slash, Backslash, Tilde, Equal, Hyphen, Space, Enter, Backspace, Tab, PageUp, PageDown, End, Home, Insert, Delete, Add, Subtract, Multiply, Divide, Left, Right, Up, Down, Numpad0, Numpad1, Numpad2, Numpad3, Numpad4, Numpad5, Numpad6, Numpad7, Numpad8, Numpad9, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15, Pause, KeyCount };
-
-/// Returns true if the specified key is pressed
-pub fn isKeyPressed(key: KeyCode) bool {
- return sf.c.sfKeyboard_isKeyPressed(@enumToInt(key)) == 1;
-}