コード例 #1
0
ファイル: keyboard.go プロジェクト: bluepeppers/allegro
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
ファイル: keyboard.go プロジェクト: b1naryth1ef/allegro
func KeycodeToName(keycode int32) string {
	return C.GoString(C.al_keycode_to_name(C.int(keycode)))
}