Commit Graph

4 Commits

Author SHA1 Message Date
Dennis Potter 74e23a5b5f Improved user-friendliness. Closes #7
Every function is now a separate subcommand:
 * append (append a key, a modifier, or a string to one or more pedals)
 * clear (clear one or more pedals)
 * help (print a help message)
 * list (print a table with all possible keys)
 * read (read values from the footpedal)
 * set (set a key or mousebutton to one or more pedals)

A disadvantage is that different subcommands cannot be combined in one
call of the application anymore. However, this new structure brings the
major benefit that the program is more intuitive for users.

A second, small change is the fact that the welcome() function now reads
application and authore name from the Cargo file.
2018-11-14 00:20:51 +01:00
Dennis Potter 00070237e7 Moved HidDevice to struct Pedals. Closes #2
A recent update of hidapi made this possible.
2018-11-13 00:21:08 +01:00
Dennis Potter 3558a4869a Added a module which nicely formats output to console. Fixes #4 2018-07-26 17:15:39 +02:00
Dennis Potter 426dd13ca3 Initial commit. Application is able to initialize HID and read from it. Furthermore, it contains a lookup table for all keys 2018-07-10 23:36:20 +02:00