Skip to content

Commit

Permalink
Use MacbookAir10,1 ID in macOS 12+
Browse files Browse the repository at this point in the history
  • Loading branch information
1Revenger1 committed Jul 12, 2024
1 parent d660f16 commit 1071e76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VoodooInput/VoodooInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ IOReturn VoodooInput::message(UInt32 type, IOService *provider, void *argument)
}

int VoodooInputGetProductId() {
if (version_major >= kVoodooInputVersionSequoia) {
if (version_major >= kVoodooInputVersionMonterey) {
return kVoodooInputProductMacbookAir10_1;
}

Expand Down
4 changes: 2 additions & 2 deletions VoodooInput/VoodooInputIDs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

// macOS 10.10-14
constexpr int kVoodooInputProductMacbook8_1 = 0x272;
// macOS 15+
// macOS 12+
constexpr int kVoodooInputProductMacbookAir10_1 = 0x281;
constexpr int kVoodooInputVendorApple = 0x5ac;

constexpr int kVoodooInputVersionSequoia = 24;
constexpr int kVoodooInputVersionMonterey = 21;

int VoodooInputGetProductId();

Expand Down

0 comments on commit 1071e76

Please sign in to comment.