예제 #1
0
func KeycodeToName(keycode int) string {
	var cs *C.char

	cs = C.al_keycode_to_name(C.int(keycode))

	return C.GoString(cs)
}
예제 #2
0
파일: keyboard.go 프로젝트: beoran/algo
// Gets the name of te given keucode as a string.
func KeycodeToName(keycode int) string {
	return gostr(C.al_keycode_to_name(C.int(keycode)))
}
예제 #3
0
func KeycodeToName(keycode int32) string {
	return C.GoString(C.al_keycode_to_name(C.int(keycode)))
}