mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
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
|
||
|
}
|