Versions in this module Expand all Collapse all v1 v1.0.0 Aug 19, 2018 Changes in this version + type Button uint32 + const ButtonBack + const ButtonForward + const ButtonLeft + const ButtonPen1 + const ButtonPen2 + const ButtonPen3 + const ButtonPenEraser + const ButtonPenTip + const ButtonRight + const ButtonTouch + func (i Button) String() string + type Capabilities struct + Buttons []Button + PositionDevices []PositionDevice + func (cap *Capabilities) HasButton(button Button) bool + func (cap *Capabilities) HasPositionDevice(device PositionDevice) bool + func (cap *Capabilities) String() string + type Coord2D struct + X float32 + Y float32 + func (c *Coord2D) String() string + type Device interface + Capabilities func() *Capabilities + Close func() + Properties func() Properties + Read func() (Event, error) + type DeviceInfo struct + Name string + Open func() (Device, error) + Type DeviceType + func ListDevices() ([]DeviceInfo, error) + type DeviceType int + const DeviceTypeMouse + const DeviceTypeTablet + func (i DeviceType) String() string + type Event interface + String func() string + Time func() time.Time + type EventButton struct + Button Button + Pressure float32 + Timestamp time.Time + func (e *EventButton) String() string + func (e *EventButton) Time() time.Time + type EventPositionFinger struct + Coord Coord2D + Timestamp time.Time + func (e *EventPositionFinger) String() string + func (e *EventPositionFinger) Time() time.Time + type EventPositionPen struct + Coord Coord2D + Distance float32 + Timestamp time.Time + func (e *EventPositionPen) String() string + func (e *EventPositionPen) Time() time.Time + type PositionDevice uint32 + const PositionDeviceFinger + const PositionDevicePen + func (i PositionDevice) String() string + type Properties map[Property]PropertyValue + func (props Properties) String() (result string) + type Property string + const PropertyDeviceName + const PropertyDeviceType + const PropertyPadHeightMillimeters + const PropertyPadWidthHeightRatio + const PropertyPadWidthMillimeters + type PropertyValue interface + Number func() float64 + String func() string + Type func() string + type PropertyValueNumber float64 + func (val PropertyValueNumber) Number() float64 + func (val PropertyValueNumber) String() string + func (val PropertyValueNumber) Type() string + type PropertyValueString string + func (val PropertyValueString) Number() float64 + func (val PropertyValueString) String() string + func (val PropertyValueString) Type() string