mirror of
https://github.com/preble/libpinproc
synced 2026-02-24 18:25:23 +01:00
Replace concept of virtual switches with switches that don't need to be debounced. This is necessary because all switches 0-255 are used. Defining some as never-debounce makes switch rules available for linked rules.
This commit is contained in:
@@ -383,9 +383,9 @@ PINPROC_API int PRGetEvents(PRHandle handle, PREvent *eventsOut, int maxEvents);
|
||||
|
||||
|
||||
#define kPRSwitchPhysicalFirst (0) /**< Switch number of the first physical switch. */
|
||||
#define kPRSwitchPhysicalLast (223) /**< Switch number of the last physical switch. */
|
||||
#define kPRSwitchVirtualFirst (224) /**< Switch number of the first virtual switch. */
|
||||
#define kPRSwitchVirtualLast (255) /**< Switch number of the last virtual switch. */
|
||||
#define kPRSwitchPhysicalLast (255) /**< Switch number of the last physical switch. */
|
||||
#define kPRSwitchNeverDebounceFirst (192) /**< Switch number of the first switch that doesn't need to debounced. */
|
||||
#define kPRSwitchNeverDebounceLast (255) /**< Switch number of the last switch that doesn't need to be debounce. */
|
||||
#define kPRSwitchCount (256)
|
||||
#define kPRSwitchRulesCount (kPRSwitchCount << 2) /**< Total number of available switch rules. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user