mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
ea5517b270
* add xf86 input driver. * cleanup. * rewrite to unix socket PoC. * add input rebuild. * lint & docs. * add input driver struct. * comments, lint, socket name from config. * add touch events to webrtc. * switch to uint32. * misc update logging & linting, * fix screen size * set touchscreen as core pointer. * add touch to ws control. * SendCoreEvents. * extract to own xinput folder. * add debounce. * switch pressure to uint8. * check buffer size. * send touch events with system init.
32 lines
520 B
Go
32 lines
520 B
Go
package xinput
|
|
|
|
import "time"
|
|
|
|
type dummy struct{}
|
|
|
|
func NewDummy() Driver {
|
|
return &dummy{}
|
|
}
|
|
|
|
func (d *dummy) Connect() error {
|
|
return nil
|
|
}
|
|
|
|
func (d *dummy) Close() error {
|
|
return nil
|
|
}
|
|
|
|
func (d *dummy) Debounce(duration time.Duration) {}
|
|
|
|
func (d *dummy) TouchBegin(touchId uint32, x, y int, pressure uint8) error {
|
|
return nil
|
|
}
|
|
|
|
func (d *dummy) TouchUpdate(touchId uint32, x, y int, pressure uint8) error {
|
|
return nil
|
|
}
|
|
|
|
func (d *dummy) TouchEnd(touchId uint32, x, y int, pressure uint8) error {
|
|
return nil
|
|
}
|