Stefan Schuermans commited on 2019-05-04 14:39:12
Showing 1 changed files, with 11 additions and 2 deletions.
... | ... |
@@ -103,8 +103,17 @@ void OpPrinter::opConnRecvKey(OpConn *pConn, char key) |
103 | 103 |
|
104 | 104 |
// reply to some keys with play command for sounds |
105 | 105 |
switch (key) { |
106 |
- case '7': pConn->sendPlay("ueber_7_bruecken"); break; |
|
107 |
- case '9': pConn->sendPlay("99_luftballons"); break; |
|
106 |
+ case '0': pConn->sendPlay("zero"); break; |
|
107 |
+ case '1': pConn->sendPlay("one"); break; |
|
108 |
+ case '2': pConn->sendPlay("two"); break; |
|
109 |
+ case '3': pConn->sendPlay("three"); break; |
|
110 |
+ case '4': pConn->sendPlay("four"); break; |
|
111 |
+ case '5': pConn->sendPlay("five"); break; |
|
112 |
+ case '6': pConn->sendPlay("six"); break; |
|
113 |
+ case '7': pConn->sendPlay("seven"); break; |
|
114 |
+ case '8': pConn->sendPlay("eight"); break; |
|
115 |
+ case '9': pConn->sendPlay("nine"); break; |
|
116 |
+ case '*': pConn->sendPlay("star"); break; |
|
108 | 117 |
case '#': |
109 | 118 |
std::cout << "closing connection " << pConn << std::endl; |
110 | 119 |
pConn->close(); |
111 | 120 |