Subversion Repositories Shiroi

Rev

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

Rev 10 Rev 11
Line 1... Line 1...
1
/* $Id: main.c 10 2024-08-29 01:39:27Z nishi $ */
1
/* $Id: main.c 11 2024-08-29 02:49:47Z 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 191... Line 191...
191
			} else if(c == KEY_BACKSLASH) {
191
			} else if(c == KEY_BACKSLASH) {
192
				text->key = (3 << 4) | 12;
192
				text->key = (3 << 4) | 12;
193
			} else if(c == KEY_LEFT_SHIFT || c == KEY_RIGHT_SHIFT) {
193
			} else if(c == KEY_LEFT_SHIFT || c == KEY_RIGHT_SHIFT) {
194
				text->key = (3 << 4) | 13;
194
				text->key = (3 << 4) | 13;
195
				text->caps = !text->caps;
195
				text->caps = !text->caps;
-
 
196
			} else if(c == KEY_F1) {
-
 
197
				if(shiroi.stop) {
-
 
198
					shiroi.stop = false;
-
 
199
					shiroi.reset = true;
-
 
200
					thread_start();
-
 
201
				} else {
-
 
202
					shiroi.reset = true;
-
 
203
					shiroi.stop = true;
-
 
204
					thread_end();
-
 
205
				}
196
			} else if(c == KEY_F2) {
206
			} else if(c == KEY_F2) {
197
				shiroi.reset = true;
207
				shiroi.reset = true;
198
			} else if(c == KEY_COMMA) {
208
			} else if(c == KEY_COMMA) {
199
				text->key = (4 << 4) | 8;
209
				text->key = (4 << 4) | 8;
200
			} else if(c == KEY_PERIOD) {
210
			} else if(c == KEY_PERIOD) {