Exemple #1
0
func (r *Reader) Start() {
	r.log.Infof("Opening %s", GesticDevicePath)

	if err := epoller.OpenAndDispatchEvents(GesticDevicePath, r.buildGestureEvent); err != nil {
		log.Fatalf("Error opening device reader %v", err)
	}

}
Exemple #2
0
func (r *Reader) MaybeStart() error {
	r.log.Infof("Opening %s", GesticDevicePath)

	if err := epoller.OpenAndDispatchEvents(GesticDevicePath, r.buildGestureEvent); err != nil {
		r.log.Warningf("Error opening device reader %v", err)
		return err
	}

	return nil
}