summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2023-04-25 19:47:21 -0400
committerrealtradam <[email protected]>2023-04-25 19:47:21 -0400
commit6d58c7ab983e6c2345794ee7bde8dc698cf06f0e (patch)
treef571b57f3a965cdb59a9d59e68b18e3bbeaa21db
parente5ad114afa00ed98908c3b3bacadf30c742cabd6 (diff)
downloadRodeoKit-6d58c7ab983e6c2345794ee7bde8dc698cf06f0e.tar.gz
RodeoKit-6d58c7ab983e6c2345794ee7bde8dc698cf06f0e.zip
update readme + remove unused structs
-rw-r--r--Readme.md4
-rw-r--r--include/rodeo/input_t.h19
2 files changed, 12 insertions, 11 deletions
diff --git a/Readme.md b/Readme.md
index 38779b3..f587d07 100644
--- a/Readme.md
+++ b/Readme.md
@@ -26,9 +26,9 @@ The goal of this style of design approach is to avoid over-thinking of future de
- [x] Callback event-based input system.
- [x] Bind inputs(such as character keys) to function pointers. Once the key is pressed the function is called.
- [x] Abstract into "commands" which allows adding functions, adding multiple inputs, and assigning to "scenes" that can be enabled or disabled.
-- [ ] Implementing further input abstractions by 4 categories:
+- [X] Implementing further input abstractions by 4 categories:
- [x] Binary (such as keys on a keyboard, or buttons on a controller)
- - [ ] Bounded Range (such as the x and y joysticks on a controller)
+ - [X] Bounded Range (such as the x and y joysticks on a controller)
- [x] Unbounded Range (such as the x and y mouse delta)
- [x] Positional (such as the position of a mouse)
diff --git a/include/rodeo/input_t.h b/include/rodeo/input_t.h
index 0d57942..2277505 100644
--- a/include/rodeo/input_t.h
+++ b/include/rodeo/input_t.h
@@ -440,6 +440,7 @@ rodeo_input_binary_scancode_t;
#define mrodeo_input_binary_scancode_mask (1<<30)
#define mrodeo_input_binary_scancode_maskshift(X) (X | mrodeo_input_binary_scancode_mask)
+/*
typedef enum
{
rodeo_input_binary_keycode_UNKNOWN = 0,
@@ -482,9 +483,7 @@ typedef enum
rodeo_input_binary_keycode_QUESTION = '?',
rodeo_input_binary_keycode_AT = '@',
- /*
- Skip uppercase letters
- */
+ // Skip uppercase letters
rodeo_input_binary_keycode_LEFTBRACKET = '[',
rodeo_input_binary_keycode_BACKSLASH = '\\',
@@ -719,12 +718,14 @@ typedef enum
rodeo_input_binary_keycode_ENDCALL = mrodeo_input_binary_scancode_maskshift(rodeo_input_binary_scancode_ENDCALL)
}
rodeo_input_binary_keycode_t;
+*/
/**
* \brief Enumeration of valid key mods (possibly OR'd together).
*/
+
typedef
enum
{
@@ -754,12 +755,12 @@ rodeo_input_keymod_t;
typedef
enum
{
- rodeo_input_binary_mouseButton_INVALID = 0,
- rodeo_input_binary_mouseButton_LEFT = 1,
- rodeo_input_binary_mouseButton_MIDDLE = 2,
- rodeo_input_binary_mouseButton_RIGHT = 3,
- rodeo_input_binary_mouseButton_X1 = 4,
- rodeo_input_binary_mouseButton_X2 = 5,
+ rodeo_input_binary_mouseButton_INVALID = -1,
+ rodeo_input_binary_mouseButton_LEFT = 1,
+ rodeo_input_binary_mouseButton_MIDDLE = 2,
+ rodeo_input_binary_mouseButton_RIGHT = 3,
+ rodeo_input_binary_mouseButton_X1 = 4,
+ rodeo_input_binary_mouseButton_X2 = 5,
}
rodeo_input_binary_mouseButton_t;