Skip to content

Commit

Permalink
Switch around Mac and Windows modes for Halo75 (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
donn authored Jan 2, 2023
1 parent b6b6de6 commit 31ee3b0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions include/nuphy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,18 +141,18 @@ class Halo75 : public NuPhy {

virtual std::vector< uint8_t > getKeymapReportHeader(bool mac = false) {
return mac ? std::vector< uint8_t >(
{0x05, 0x84, 0xd8, 0x00, 0x00, 0x00}
{0x05, 0x84, 0xd4, 0x00, 0x00, 0x00}
) :
std::vector< uint8_t >(
{0x05, 0x84, 0xd4, 0x00, 0x00, 0x00}
{0x05, 0x84, 0xd8, 0x00, 0x00, 0x00}
);
}
virtual std::vector< uint8_t > setKeymapReportHeader(bool mac = false) {
return mac ? std::vector< uint8_t >(
{0x06, 0x04, 0xd8, 0x00, 0x40, 0x00, 0x00, 0x00}
{0x06, 0x04, 0xd4, 0x00, 0x40, 0x00, 0x00, 0x00}
) :
std::vector< uint8_t >(
{0x06, 0x04, 0xd4, 0x00, 0x40, 0x00, 0x00, 0x00}
{0x06, 0x04, 0xd8, 0x00, 0x40, 0x00, 0x00, 0x00}
);
}
private:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nudelta",
"author": "Mohamed Gaber <me@donn.website>",
"version": "0.6.2",
"version": "0.6.3",
"license": "GPL-3.0-or-later",
"homepage": "https://github.com/donn/nudelta#readme",
"description": "An open-source alternative to the NuPhy Console",
Expand Down
12 changes: 6 additions & 6 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,16 @@ int main(int argc, char *argv[]) {
"Print the connected keyboard's firmware and exit.",
false,
printFirmware},
Opt{"mac",
'M',
"Valid only if dump-keys or load-keys are passed: operate on the Mac mode of the keyboard instead of the Win mode.",
false},
Opt{"load-profile", 'l', "Load YAML keymap", true, loadYAML},
Opt{"reset-keys",
'r',
"Restore the original keymap.",
false,
resetKeymap},
Opt{"mac",
'M',
"Valid only if dump-keys or load-keys are passed: operate on the Mac mode of the keyboard instead of the Win mode.",
false},
Opt{"dump-keys",
'D',
"Dump the keymap to a binary file.",
Expand All @@ -212,8 +213,7 @@ int main(int argc, char *argv[]) {
'L',
"Load the keymap from a binary file.",
true,
loadKeymap},
Opt{"load-profile", 'l', "Load YAML keymap", true, loadYAML}}
loadKeymap}}
);

try {
Expand Down

0 comments on commit 31ee3b0

Please sign in to comment.