Skip to content

Commit ad231bd

Browse files
committed
Fixed Stream Deck Mini Button 1 Callback Trigger
- For some reason the Stream Deck Mini Button 1 triggers an `eventType` of `0x01` (instead of `0x00`) on button press (but not release). - Closes Hammerspoon#3432
1 parent 1211231 commit ad231bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/streamdeck/HSStreamDeckManager.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ static void HIDReport(void* deviceRef, IOReturn result, void* sender, IOHIDRepor
1616
HSStreamDeckDevice *device = (__bridge HSStreamDeckDevice*)deviceRef;
1717

1818
uint8_t inputType = report[1];
19-
if (inputType == 0x00) {
19+
if (inputType == 0x00 || inputType == 0x01) { // An `inputType` of `0x01` was observed for button 1 on a Stream Deck Mini (Model 20GAI9901).
2020
// -------------
2121
// BUTTON EVENT:
2222
// -------------

0 commit comments

Comments
 (0)