MCPcopy Create free account
hub / github.com/cogentcore/core / ConvAndroidKeyCode

Function ConvAndroidKeyCode

system/driver/android/event.go:222–227  ·  view source on GitHub ↗

ConvAndroidKeyCode converts the given android key code to a system key code

(aKeyCode int32)

Source from the content-addressed store, hash-verified

220
221// ConvAndroidKeyCode converts the given android key code to a system key code
222func ConvAndroidKeyCode(aKeyCode int32) key.Codes {
223 if code, ok := AndroidKeyCodes[aKeyCode]; ok {
224 return code
225 }
226 return key.CodeUnknown
227}
228
229/*
230 Many Android key codes do not map into USB HID codes.

Callers 2

keyboardTypedFunction · 0.85
ProcessKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected