f
Dependencies: mbed 4DGL-uLCD-SE MMA8452
keyboard.cpp@0:8e3b9bb1084a, 2022-03-10 (annotated)
- Committer:
- lballard9
- Date:
- Thu Mar 10 05:18:13 2022 +0000
- Revision:
- 0:8e3b9bb1084a
- Child:
- 6:453dc852ac0f
shell rev b;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lballard9 | 0:8e3b9bb1084a | 1 | #include "keyboard.h" |
lballard9 | 0:8e3b9bb1084a | 2 | #include "dictionary.h" |
lballard9 | 0:8e3b9bb1084a | 3 | #include <string> |
lballard9 | 0:8e3b9bb1084a | 4 | |
lballard9 | 0:8e3b9bb1084a | 5 | |
lballard9 | 0:8e3b9bb1084a | 6 | |
lballard9 | 0:8e3b9bb1084a | 7 | |
lballard9 | 0:8e3b9bb1084a | 8 | int compareChar(void* input1, void* input2){ |
lballard9 | 0:8e3b9bb1084a | 9 | if(*(char*)input1 == *(char*)input2){ |
lballard9 | 0:8e3b9bb1084a | 10 | return 1; |
lballard9 | 0:8e3b9bb1084a | 11 | } |
lballard9 | 0:8e3b9bb1084a | 12 | else{ |
lballard9 | 0:8e3b9bb1084a | 13 | return 0; |
lballard9 | 0:8e3b9bb1084a | 14 | } |
lballard9 | 0:8e3b9bb1084a | 15 | } |
lballard9 | 0:8e3b9bb1084a | 16 | |
lballard9 | 0:8e3b9bb1084a | 17 | |
lballard9 | 0:8e3b9bb1084a | 18 | void init_keyboard() |
lballard9 | 0:8e3b9bb1084a | 19 | { |
lballard9 | 0:8e3b9bb1084a | 20 | |
lballard9 | 0:8e3b9bb1084a | 21 | } |
lballard9 | 0:8e3b9bb1084a | 22 | |
lballard9 | 0:8e3b9bb1084a | 23 | |
lballard9 | 0:8e3b9bb1084a | 24 | void moveleft() |
lballard9 | 0:8e3b9bb1084a | 25 | { |
lballard9 | 0:8e3b9bb1084a | 26 | |
lballard9 | 0:8e3b9bb1084a | 27 | } |
lballard9 | 0:8e3b9bb1084a | 28 | |
lballard9 | 0:8e3b9bb1084a | 29 | |
lballard9 | 0:8e3b9bb1084a | 30 | void moveright() |
lballard9 | 0:8e3b9bb1084a | 31 | { |
lballard9 | 0:8e3b9bb1084a | 32 | |
lballard9 | 0:8e3b9bb1084a | 33 | } |
lballard9 | 0:8e3b9bb1084a | 34 | |
lballard9 | 0:8e3b9bb1084a | 35 | |
lballard9 | 0:8e3b9bb1084a | 36 | void select_letter() |
lballard9 | 0:8e3b9bb1084a | 37 | { |
lballard9 | 0:8e3b9bb1084a | 38 | |
lballard9 | 0:8e3b9bb1084a | 39 | } |
lballard9 | 0:8e3b9bb1084a | 40 | |
lballard9 | 0:8e3b9bb1084a | 41 | |
lballard9 | 0:8e3b9bb1084a | 42 | void remove_letter() |
lballard9 | 0:8e3b9bb1084a | 43 | { |
lballard9 | 0:8e3b9bb1084a | 44 | |
lballard9 | 0:8e3b9bb1084a | 45 | } |
lballard9 | 0:8e3b9bb1084a | 46 | |
lballard9 | 0:8e3b9bb1084a | 47 | void check_word() |
lballard9 | 0:8e3b9bb1084a | 48 | { |
lballard9 | 0:8e3b9bb1084a | 49 | |
lballard9 | 0:8e3b9bb1084a | 50 | } |