IDD Fall 2015
/
idd_fall15_hw2_inezraharjo_braille
Based on braile system for blind people.
Diff: main.cpp
- Revision:
- 1:7c1f8a60c3d4
- Parent:
- 0:c31de740c873
- Child:
- 2:ce1a6c9ed015
--- a/main.cpp Sun Sep 13 00:04:17 2015 +0000 +++ b/main.cpp Sun Sep 13 07:03:42 2015 +0000 @@ -108,6 +108,54 @@ if (one && two && !three && !four && five && six){ keyboard.keyCode(' '); } + if (one && !two && !three && !four && five && six){ + keyboard.keyCode('?'); + } + if (one && !two && !three && four && !five && six){ + keyboard.keyCode('!'); + } + if (one && two && !three && four && five && six){ + keyboard.keyCode('\''); + } + if (one && two && three && four && five && six){ + keyboard.keyCode(','); + } + if (one && !two && three && !four && !five && six){ + keyboard.keyCode('.'); + } + if (one && two && !three && !four && !five && !six){ + keyboard.keyCode('#'); + } + if (one && !two && three && four && !five && !six){ + keyboard.keyCode('0'); + } + if (!one && two && three && four && five && six){ + keyboard.keyCode('1'); + } + if (!one && !two && three && four && five && six){ + keyboard.keyCode('2'); + } + if (!one && two && three && four && five && !six){ + keyboard.keyCode('3'); + } + if (!one && two && three && four && !five && !six){ + keyboard.keyCode('4'); + } + if (!one && two && three && four && !five && six){ + keyboard.keyCode('5'); + } + if (!one && !two && three && four && five && !six){ + keyboard.keyCode('6'); + } + if (!one && !two && three && four && !five && !six){ + keyboard.keyCode('7'); + } + if (!one && !two && three && four && !five && six){ + keyboard.keyCode('8'); + } + if (one && !two && three && four && five && !six){ + keyboard.keyCode('9'); + } one = 1; two = 1; three = 1;