1 #include "src\eng_comm.h"
\r
9 /*engine_message do_communication()
\r
11 //communication here
\r
12 //==== std::cout << "COMMUNICATION HERE" << std::endl;
\r
14 std::cout << "Enter 1 for continue." << std::endl;
\r
16 return msg == 1 ? ENGINE_RUN : ENGINE_QUIT;
\r
18 /*engine_message do_communication(bool *input)
\r
20 //communication here
\r
21 //==== std::cout << "COMMUNICATION HERE" << std::endl;
\r
22 return input['e'] == true ? ENGINE_QUIT : ENGINE_RUN;
\r
24 engine_message do_communication(byte input)
\r
26 //communication here
\r
27 //==== std::cout << "COMMUNICATION HERE" << std::endl;
\r
29 FMKeyOn(0, 0x106, 4);
\r
30 }else if(input == 172) FMKeyOff(0);
\r
36 }else if(input == KEY_X+128) nosound();
\r
37 if(12 >= input && input >= 2) qing = input - 1;
\r
38 if(input == 57) qing = 0;
43 if(keyp(KEY_UP) || keyp(KEY_DOWN) || keyp(KEY_LEFT) || keyp(KEY_RIGHT)) etesuto(xxxx, yyyy);
\r
45 if(--yyyy < 0) yyyy = 0;
\r
46 }else if(keyp(KEY_DOWN)){
\r
47 if(++yyyy >= SH) yyyy = SH - 1;
\r
50 if(--xxxx < 0) xxxx = 0;
\r
52 if(keyp(KEY_RIGHT)){
\r
53 if(++xxxx >= SW) xxxx = SW - 1;
\r
55 qtesuto(xxxx, yyyy, 14);
\r
57 //if(input) printf("%03d\n", input);
58 return input == 1 ? ENGINE_QUIT : ENGINE_RUN;
\r