diff options
author | Louie S <louie@example.com> | 2023-10-12 15:27:26 -0400 |
---|---|---|
committer | Louie S <louie@example.com> | 2023-10-12 15:27:43 -0400 |
commit | 91da624fe1665f3ddb3216ebb8a56a982074228d (patch) | |
tree | f64f629d2f4c33b7f64681fd9e285620f139e1ed /src/holder.c |
First commit
Diffstat (limited to 'src/holder.c')
-rw-r--r-- | src/holder.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/holder.c b/src/holder.c new file mode 100644 index 0000000..d15f2cb --- /dev/null +++ b/src/holder.c @@ -0,0 +1,13 @@ +#include "holder.h" + +int hover_max = 2; + +void hover_move_right() { + ++hover; + if(hover > hover_max) hover = hover_max; +} + +void hover_move_left() { + --hover; + if(hover < 0) hover = 0; +} |