@@ -3,16 +3,11 @@ Package joysticks, provides simplified event routing, through channels, from the
events can be listened for from any thread, dynamically re-mapped and simulated.
usage:
usage (highlevel):
'Capture', a single call to setup and start basic 'Event' channeling on the first available device.
'Capture', one call to setup and start basic 'Event' channeling on the first available device.
'Event', an interface, provides a time.Duration through the Moment() method, returning whatever the underlying Linux driver provides as the events timestamp, as a time.Duration.
Events, will need casting to the actual type to access data other than moment.
or (more flexible)
or (midlevel) more flexible.
'Connect(index)' to a HID.
@@ -20,13 +15,24 @@ Use methods to add (or alter) 'Event' channels,
Start running by calling 'ParcelOutEvents()'.
event index to channel mappings can be changed dynamically.
(event index to channel mappings can be changed dynamically.)
or (DIY)
or (lowlevel/DIY)
'Connect' to a HID by index number
handle all events directly using the returned HID's OSEvents channel.
Interface:
'Event', an interface, provides a time.Duration through the Moment() method, returning whatever the underlying Linux driver provides as the events timestamp, as a time.Duration.
Note: retured Events, will need asserting to their underlying type to access data other than moment.