Documentation ¶
Index ¶
- Constants
- func CanLeftHanded(xid uint32, devName string) bool
- func GetButtonMap(xid uint32, devName string) ([]byte, error)
- func GetProperty(id int32, prop string) ([]byte, int32)
- func IsPropertyExist(id int32, prop string) bool
- func QueryDeviceType(id int32) int32
- func ReadFloat32(datas []byte, nitems int32) []float32
- func ReadInt16(datas []byte, nitems int32) []int16
- func ReadInt32(datas []byte, nitems int32) []int32
- func ReadInt8(datas []byte, nitems int32) []int8
- func SetButtonMap(xid uint32, devName string, btnMap []byte) error
- func SetFloat32Prop(id int32, prop string, values []float32) error
- func SetInt16Prop(id int32, prop string, values []int16) error
- func SetInt32Prop(id int32, prop string, values []int32) error
- func SetInt8Prop(id int32, prop string, values []int8) error
- func SetKeyboardRepeat(enabled bool, delay, interval uint32) error
- func SetLeftHanded(xid uint32, devName string, useLeft bool) error
- func WriteFloat32(values []float32) []byte
- func WriteInt16(values []int16) []byte
- func WriteInt32(values []int32) []byte
- func WriteInt8(values []int8) []byte
- type DeviceInfo
- type DeviceInfos
Constants ¶
View Source
const ( DevTypeUnknown int32 = iota DevTypeKeyboard DevTypeMouse DevTypeTouchpad DevTypeWacom DevTypeTouchscreen )
Variables ¶
This section is empty.
Functions ¶
func CanLeftHanded ¶
func IsPropertyExist ¶
func QueryDeviceType ¶
func ReadFloat32 ¶
func SetKeyboardRepeat ¶
func WriteFloat32 ¶
func WriteInt16 ¶
func WriteInt32 ¶
Types ¶
type DeviceInfos ¶
type DeviceInfos []*DeviceInfo
func ListDevice ¶
func ListDevice() DeviceInfos
func (DeviceInfos) Get ¶
func (infos DeviceInfos) Get(id int32) *DeviceInfo
Click to show internal directories.
Click to hide internal directories.