Documentation ¶
Index ¶
- func NewClient(conn gopi.RPCClientConn) gopi.RPCClient
- type Client
- func (this *Client) Codecs() ([]remotes.CodecType, error)
- func (this *Client) Conn() gopi.RPCClientConn
- func (this *Client) KeyMaps() ([]*KeyMapInfo, error)
- func (this *Client) Keys(keymap string) ([]*Key, error)
- func (this *Client) LookupKeys(keymap string, terms []string) ([]*Key, error)
- func (this *Client) NewContext() context.Context
- func (this *Client) Receive(ctx context.Context, evt chan<- *Event) error
- func (this *Client) SendKeycode(keymap string, keycode remotes.RemoteCode, repeats uint) error
- func (this *Client) SendScancode(codec remotes.CodecType, device, scancode uint32, repeats uint) error
- func (this *Client) String() string
- type Event
- type InputEvent
- type Key
- type KeyMapInfo
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { pb.RemotesClient // contains filtered or unexported fields }
func (*Client) Conn ¶
func (this *Client) Conn() gopi.RPCClientConn
func (*Client) KeyMaps ¶
func (this *Client) KeyMaps() ([]*KeyMapInfo, error)
Return array of keymaps learnt
func (*Client) LookupKeys ¶
Return keys with one or more search terms and optional keymap argument to narrow search to a keymap entries
func (*Client) NewContext ¶
func (*Client) SendKeycode ¶
Send a remote keycode
type Event ¶
type Event struct { InputEvent Key KeyMapInfo }
type InputEvent ¶
type InputEvent struct { Timestamp time.Duration DeviceType gopi.InputDeviceType EventType gopi.InputEventType Keycode remotes.RemoteCode }
type Key ¶
type Key struct {
remotes.KeyMapEntry
}
type KeyMapInfo ¶
Click to show internal directories.
Click to hide internal directories.