Exemple #1
0
func (code Scancode) c() C.SDL_Scancode {
	return C.SDL_Scancode(code)
}
Exemple #2
0
func GetKeyFromScancode(scancode int32) int32 {
	return int32(C.SDL_GetKeyFromScancode(C.SDL_Scancode(scancode)))
}
Exemple #3
0
func GetScancodeName(scancode int32) string {
	name := C.GoString(C.SDL_GetScancodeName(C.SDL_Scancode(scancode)))
	return name
}
Exemple #4
0
func (s Scancode) c() C.SDL_Scancode {
	return C.SDL_Scancode(s)
}