Subversion Repositories Shiroi

Rev

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

Rev 7 Rev 10
Line 1... Line 1...
1
/* $Id: main.c 7 2024-08-28 14:02:52Z nishi $ */
1
/* $Id: main.c 10 2024-08-29 01:39:27Z 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_F2) {
-
 
197
				shiroi.reset = true;
196
			} else if(c == KEY_COMMA) {
198
			} else if(c == KEY_COMMA) {
197
				text->key = (4 << 4) | 8;
199
				text->key = (4 << 4) | 8;
198
			} else if(c == KEY_PERIOD) {
200
			} else if(c == KEY_PERIOD) {
199
				text->key = (4 << 4) | 9;
201
				text->key = (4 << 4) | 9;
200
			} else if(c == KEY_SLASH) {
202
			} else if(c == KEY_SLASH) {