Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different Keyboard (QWERTY French Canadian Keybindings) #17

Closed
cittadhammo opened this issue Dec 29, 2023 · 1 comment
Closed

Different Keyboard (QWERTY French Canadian Keybindings) #17

cittadhammo opened this issue Dec 29, 2023 · 1 comment

Comments

@cittadhammo
Copy link

I have tried to build this unsuccessfully. I replaced the key.go with the following content.
Is there an easy way to build that. Step by step. I have tried the Makefile or directly the go build -o ./build/kobowriter command, but it fails all the time, due to errors.

Thanks for your help. Your thing is working nicely on Kobo touch 2.0. thanks !

//QWERTY French Canadian Keybindings created using phind.com ;-)

package event

var KeyCode = map[int]string{
	0: "KEY_RESERVED",
	1: "KEY_ESC",

	2: "1",
	3: "2",
	4: "3",
	5: "4",
	6: "5",
	7: "6",
	8: "7",
	9: "8",
	10: "9",
	11: "0",
	12: "-",
	13: "=",

	14: "KEY_BACKSPACE",
	15: "KEY_TAB",

	16: "q",
	17: "w",
	18: "e",
	19: "r",
	20: "t",
	21: "y",
	22: "u",
	23: "i",
	24: "o",
	25: "p",
	26: "[",
	27: "]",
	28: "KEY_ENTER",
	29: "KEY_L_CTRL",

	30: "a",
	31: "s",
	32: "d",
	33: "f",
	34: "g",
	35: "h",
	36: "j",
	37: "k",
	38: "l",
	39: ";",
	40: "'",

	41: "KEY_R_SHIFT",
	42: "\\",
	43: "z",
	44: "x",
	45: "c",
	46: "v",
	47: "b",
	48: "n",
	49: "m",
	50: ",",
	51: ".",
	52: "/",
	53: "KEY_R_CTRL",

	54: "KEY_KPASTERISK",
	55: "KEY_L_ALT",

	56: "KEY_SPACE",
	57: "KEY_CAPSLOCK",
	58: "KEY_F1",
	59: "KEY_F2",
	60: "KEY_F3",
	61: "KEY_F4",
	62: "KEY_F5",
	63: "KEY_F6",
	64: "KEY_F7",
	65: "KEY_F8",
	66: "KEY_F9",
	67: "KEY_F10",

	68: "KEY_NUM_LOCK",
	69: "KEY_SCROLL_LOCK",

	70: "KEY_F11",
	71: "KEY_F12",

	86: "KEY_PRINT_SCREEN",
	87: "KEY_PAUSE",
	88: "KEY_INSERT",
	89: "KEY_HOME",
	90: "KEY_PG_UP",
	91: "KEY_DEL",
	92: "KEY_END",
	93: "KEY_PG_DOWN",
	94: "KEY_RIGHT",
	95: "KEY_LEFT",
	96: "KEY_DOWN",
	97: "KEY_UP",

	100: "KEY_ALT_GR",

	103: "KEY_UP",
	105: "KEY_LEFT",
	106: "KEY_RIGHT",
	108: "KEY_DOWN",

	111: "KEY_DEL",

	183: "KEY_F13",
	184: "KEY_F14",
	185: "KEY_F15",
	186: "KEY_F16",
	187: "KEY_F17",
	188: "KEY_F18",
	189: "KEY_F19",
	190: "KEY_F20",
	191: "KEY_F21",
	192: "KEY_F22",
	193: "KEY_F23",
	194: "KEY_F24",
}

var KeyCodeMaj = map[int]string{
	2: "!",
	3: "@",
	4: "#",
	5: "$",
	6: "%",
	7: "^",
	8: "&",
	9: "*",
	10: "(",
	11: ")",
	12: "_",
	13: "+",

	16: "Q",
	17: "W",
	18: "E",
	19: "R",
	20: "T",
	21: "Y",
	22: "U",
	23: "I",
	24: "O",
	25: "P",
	26: "{",
	27: "}",


	30: "A",
	31: "S",
	32: "D",
	33: "F",
	34: "G",
	35: "H",
	36: "J",
	37: "K",
	38: "L",
	39: ":",
	40: "'",
	43: "|",
	44: "Z",
	45: "X",
	46: "C",
	47: "V",
	48: "B",
	49: "N",
	50: "?",
	51: ".",
	52: "/",
}

var KeyCodeAltGr = map[int]string{
	3: "~",
	4: "$",
	5: "ù",
	6: "µ",
	7: "•",
	8: "§",
	9: "ç",
	10: "à",
	11: "°",
	12: "+",
	13: "=",

	16: "æ",
	17: "œ",
	18: "€",
	19: "£",
	20: "®",
	21: "©",
	22: "°",
	23: "²",
	24: "³",
	25: "¹",
	26: "½",
	27: "¬",

	30: "@",
	31: "ß",
	32: "¿",
	33: "÷",
	34: "¡",
	35: "»",

	37: "|",
	38: "«",
	39: "≠",

	41: "`",

	43: "|",
	44: "}",
	45: "|",
	46: "€",
	47: "“",
	48: "‘",
	49: "…",
	50: "·",
	51: "–",
	52: "—",
}
@cittadhammo
Copy link
Author

see #18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant