Documentation
¶
Index ¶
- Constants
- type Handle
- func (handle Handle) Close() error
- func (handle Handle) FlushConsoleInputBuffer() error
- func (handle Handle) GetConsoleMode() uint32
- func (handle Handle) GetNumberOfEvent() (int, error)
- func (handle Handle) Read(events []InputRecord) uint32
- func (handle Handle) SetConsoleMode(flag uint32)
- func (handle Handle) WaitForSingleObject(msec uintptr) (uintptr, error)
- func (handle Handle) Write(events []InputRecord) uint32
- type InputRecord
- type KeyEventRecord
- type MouseEventRecord
Constants ¶
View Source
const ENABLE_MOUSE_INPUT = 16
View Source
const ENABLE_WINDOW_INPUT = 8
View Source
const FOCUS_EVENT = 16
Code generated by go-importconst DO NOT EDIT.
View Source
const KEY_EVENT = 1
View Source
const MENU_EVENT = 8
View Source
const MOUSE_EVENT = 2
View Source
const WAIT_ABANDONED = 128
View Source
const WAIT_FAILED = -1
View Source
const WAIT_OBJECT_0 = 0
View Source
const WAIT_TIMEOUT = 258
View Source
const WINDOW_BUFFER_SIZE_EVENT = 4
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handle ¶
func (Handle) FlushConsoleInputBuffer ¶
func (Handle) GetConsoleMode ¶
func (Handle) GetNumberOfEvent ¶
func (Handle) Read ¶
func (handle Handle) Read(events []InputRecord) uint32
func (Handle) SetConsoleMode ¶
func (Handle) WaitForSingleObject ¶
func (Handle) Write ¶
func (handle Handle) Write(events []InputRecord) uint32
type InputRecord ¶
type InputRecord struct { EventType uint16 Info [8]uint16 // contains filtered or unexported fields }
func (*InputRecord) KeyEvent ¶
func (e *InputRecord) KeyEvent() *KeyEventRecord
func (*InputRecord) MouseEvent ¶
func (e *InputRecord) MouseEvent() *MouseEventRecord
func (*InputRecord) ResizeEvent ¶
func (e *InputRecord) ResizeEvent() (int16, int16)
type KeyEventRecord ¶
Click to show internal directories.
Click to hide internal directories.