Project

General

Profile

Revision 267

correction on small mistake

View differences:

proj.c
129 129
    int ipc_status;
130 130
    message msg;
131 131
    int game_state = MENU;
132

  
133
    char buffer[1024]; // buffer
134
    int buffer_pos = 0;
135

  
132 136
    #ifndef DIOGO
133 137
        int click = 0;
134 138
    #endif
......
193 197
                                switch (game_state) {
194 198
                                case MENU:
195 199
                                    if ((scancode[0]) == ESC_BREAK_CODE) game_state = EXIT;
200

  
201
                                    else if ((scancode[0]) == A_MAKE_CODE) buffer[buffer_pos++] = 'A';
202

  
203
                                    else if ((scancode[0]) == ENTER_MAKE_CODE) {
204
                                        // func1
205

  
206
                                        memcpy(buffer, 0, buffer_pos+1);
207
                                        buffer_pos = 0;
208
                                    }
209

  
196 210
                                    break;
197 211
                                case GAME:
198 212
                                    if ((scancode[0]) == ESC_BREAK_CODE) {

Also available in: Unified diff