Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyCharacterMap ¶
type KeyCharacterMap struct {
DeviceId int32
}
KeyCharacterMap is a native C++ parcelable whose wire format is defined by JNI (android_view_KeyCharacterMap.cpp) and libinput (KeyCharacterMap.cpp).
JNI envelope (nativeWriteToParcel):
int32 deviceId bool hasMap (int32: 0 or 1)
If hasMap, KeyCharacterMap::writeToParcel follows:
CString loadFileName (null-terminated, no length prefix)
int32 type
bool layoutOverlayApplied
int32 numKeys
per key:
int32 keyCode
int32 label
int32 number
repeated {int32(1), metaState, character, fallbackKeyCode, replacementKeyCode}
int32(0) sentinel
int32 numKeyRemapping, pairs of (from, to) int32
int32 numKeysByScanCode, pairs of (scanCode, keyCode) int32
int32 numKeysByUsageCode, pairs of (usageCode, keyCode) int32
func (*KeyCharacterMap) MarshalParcel ¶
func (s *KeyCharacterMap) MarshalParcel( p *parcel.Parcel, ) error
func (*KeyCharacterMap) UnmarshalParcel ¶
func (s *KeyCharacterMap) UnmarshalParcel( p *parcel.Parcel, ) error
Click to show internal directories.
Click to hide internal directories.