diff options
author | skullydazed <skullydazed@users.noreply.github.com> | 2017-09-29 16:17:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-29 16:17:30 -0700 |
commit | 5fd68266f5d90b2c7045f44f678d71b782907752 (patch) | |
tree | 443e70a3f0dcebadd39a0c96857130546cc690a7 /keyboards/clueboard_66/keymaps/tetris/tetris_text.h | |
parent | b736f25e85171fceb06f01cf45a45f84dd0a4911 (diff) |
Clueboard 60% support (#1746)
* initial clueboard_60 support
* LED lighting support
* fix the clueboard->clueboard_66 rename
* Add layout support to clueboard_60
* Fix the 60_iso layout so it's actually iso
* add a default keymap for AEK layout
* fix clueboard_17
* Fixup the ISO layouts
* Fix the `wait_ms()/wait_us()` definitions for chibios
* Fix up the wait_ms/wait_us hack. Reduce stack size.
* Add a missing #include "wait.h"
* commit files that should have already been comitted
Diffstat (limited to 'keyboards/clueboard_66/keymaps/tetris/tetris_text.h')
-rw-r--r-- | keyboards/clueboard_66/keymaps/tetris/tetris_text.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/keyboards/clueboard_66/keymaps/tetris/tetris_text.h b/keyboards/clueboard_66/keymaps/tetris/tetris_text.h new file mode 100644 index 0000000000..25b4177e0b --- /dev/null +++ b/keyboards/clueboard_66/keymaps/tetris/tetris_text.h @@ -0,0 +1,45 @@ +/* Copyright 2017 Dan Amlund Thomsen + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ +#ifndef TETRIS_TEXT_H +#define TETRIS_TEXT_H + +//// to implement +void tetris_send_up(void); +void tetris_send_left(void); +void tetris_send_down(void); +void tetris_send_right(void); + +void tetris_send_backspace(void); +void tetris_send_delete(void); + +void tetris_send_string(const char *s); + +void tetris_send_newline(void); + +// return = meaning +// 0 = no keys pressed +// 1 = up +// 2 = left +// 3 = down +// 4 = right +int tetris_get_keypress(void); + +//// to call +void tetris_start(uint8_t seed); +// returns 0 when game is over +int tetris_tick(int ms_since_previous_tick); + +#endif |