Subversion Repositories Shiroi

Rev

Rev 13 | Rev 34 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13 Rev 20
Line 1... Line 1...
1
/* $Id: main.c 13 2024-08-29 04:36:14Z nishi $ */
1
/* $Id: main.c 20 2024-08-31 06:50:57Z nishi $ */
2
 
2
 
3
#include <stdio.h>
3
#include <stdio.h>
4
#include <stdbool.h>
4
#include <stdbool.h>
5
#include <sys/stat.h>
5
#include <sys/stat.h>
6
#include <stdlib.h>
6
#include <stdlib.h>
Line 183... Line 183...
183
			/*
183
			/*
184
			 * / 1 2 3 4 5 6 7 8 9 10 11 12 13
184
			 * / 1 2 3 4 5 6 7 8 9 10 11 12 13
185
			 * 1 1 2 3 4 5 6 7 8 9 0  -  =  bs
185
			 * 1 1 2 3 4 5 6 7 8 9 0  -  =  bs
186
			 * 2 q w e r t y u i o p  [  ]  rt
186
			 * 2 q w e r t y u i o p  [  ]  rt
187
			 * 3 a s d f g h j k l ;  '  \  cl
187
			 * 3 a s d f g h j k l ;  '  \  cl
188
			 * 4 z x c v b n m , . /  sp
188
			 * 4 z x c v b n m , . /  sp bk
189
			 */
189
			 */
190
			int c = GetKeyPressed();
190
			int c = GetKeyPressed();
191
			if(KEY_ONE <= c && c <= KEY_NINE) {
191
			if(KEY_ONE <= c && c <= KEY_NINE) {
192
				text->key = (1 << 4) | (c - KEY_ONE + 1);
192
				text->key = (1 << 4) | (c - KEY_ONE + 1);
193
			} else if(c == KEY_ZERO) {
193
			} else if(c == KEY_ZERO) {
Line 231... Line 231...
231
				text->key = (4 << 4) | 9;
231
				text->key = (4 << 4) | 9;
232
			} else if(c == KEY_SLASH) {
232
			} else if(c == KEY_SLASH) {
233
				text->key = (4 << 4) | 10;
233
				text->key = (4 << 4) | 10;
234
			} else if(c == KEY_SPACE) {
234
			} else if(c == KEY_SPACE) {
235
				text->key = (4 << 4) | 11;
235
				text->key = (4 << 4) | 11;
-
 
236
			} else if((IsKeyDown(KEY_LEFT_CONTROL) || IsKeyDown(KEY_RIGHT_CONTROL)) && c == KEY_PAUSE) {
-
 
237
				text->key = (4 << 4) | 12;
236
			} else if(c == KEY_Q) {
238
			} else if(c == KEY_Q) {
237
				text->key = (2 << 4) | 1;
239
				text->key = (2 << 4) | 1;
238
			} else if(c == KEY_W) {
240
			} else if(c == KEY_W) {
239
				text->key = (2 << 4) | 2;
241
				text->key = (2 << 4) | 2;
240
			} else if(c == KEY_E) {
242
			} else if(c == KEY_E) {