Archived
1
0

Merge pull request #2 from mcmasterathl/master

USB Codes not supported for trigger combinations/sequences
This commit is contained in:
Jacob Alexander 2015-02-28 22:51:07 -08:00
commit 1c983492d7

View File

@ -159,6 +159,16 @@ class Macros:
if usbCode in self.macros[ self.layer ][ macro ]: if usbCode in self.macros[ self.layer ][ macro ]:
scanCodeList.append( macro ) scanCodeList.append( macro )
if len(scanCodeList) == 0:
if len(usbCode) > 1 or len(usbCode[0]) > 1:
for combo in usbCode:
comboCodes = list()
for key in combo:
scanCode = self.lookupUSBCodes(((key,),))
comboCodes.append(scanCode[0][0][0])
scanCodeList.append(tuple(code for code in comboCodes))
scanCodeList = [tuple(scanCodeList)]
return scanCodeList return scanCodeList
# Cache USBCode Assignment # Cache USBCode Assignment