Mouse class of PicoRuby

Type aliases

driver_t

I2C | SPI | Array[ADC]

Singleton methods

new

Mouse.new(driver: driver_t) -> instance

Instance methods

button_pressed?

instance.button_pressed?() -> bool

task

instance.task() { (Mouse, Keyboard) -> void } -> Proc

Attr accessors

driver (reader)

instance.driver -> driver_t

task_proc (accessor)

instance.task_proc -> ^(Mouse, Keyboard) -> void

cursor_speed (accessor)

instance.cursor_speed -> Integer

wheel_speed (accessor)

instance.wheel_speed -> Integer

buttons (accessor)

instance.buttons -> Integer
Tags: class