Help us shape the future of Go! Take the 2026 Go Developer Survey

view

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2026 License: CC0-1.0 Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL