Versions in this module Expand all Collapse all v0 v0.0.2 Nov 23, 2020 v0.0.1 Nov 23, 2020 Changes in this version + const ActionAddItem + const ActionAddToList + const ActionInitPermScan + const ActionRemoveItem + const ActionRemoveItemAddToList + const ActionStopPermScan + const EVENT_BUFFER + const EVENT_CAPTURES + const SCANNER_DEVICE + const StateIdle + const StateInitPermScan + const StatePermWaitForCode + const StateSingleWaitForCode + var EVENT_SIZE = int(unsafe.Sizeof(InputEvent{})) + var ErrInvalidAction = errors.New("invalid action scanned") + var KEYCODES = map[byte]string + func ScanForever(device string, fn func(string), errFn func(error)) + type GPRCStateListener struct + func (l *GPRCStateListener) StateUpdated(state State) + type Handler struct + func GetHandler(hdb *hdb.HomeDB, bring *bring.Bring) *Handler + type IHandler interface + type InputEvent struct + Code uint16 + Time syscall.Timeval + Type uint16 + Value int32 + type Scanner struct + Action string + PreviousState string + State string + func Get(handler IHandler) *Scanner + func (s *Scanner) Start(deviceId string) + type State struct + Action string + Error error + From string + To string + type StateListener interface + StateUpdated func(state State)