Skip to content

Commit

Permalink
feat(ahk): add support for LogitechGHubNew
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaoses-Ib committed Sep 5, 2024
1 parent 26f8fbd commit 34eb625
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 14 deletions.
8 changes: 5 additions & 3 deletions Binding.AHK1/IbInputSimulator.ahk
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
; IbInputSimulator (v1)
; Description: Enable AHK to send keystrokes by drivers.
; Author: Chaoses Ib
; Version: 0.4
; Git: https://github.com/Chaoses-Ib/IbInputSimulator
; Authors: Chaoses-Ib, Pennywise007
; Version: 0.4.1
; Homepage: https://github.com/Chaoses-Ib/IbInputSimulator

IbSendInit(send_type := "AnyDriver", mode := 1, args*){
workding_dir := A_WorkingDir
Expand All @@ -24,6 +24,8 @@ IbSendInit(send_type := "AnyDriver", mode := 1, args*){
result := DllCall("IbInputSimulator\IbSendInit", "Int", 1, "Int", 0, "Ptr", 0, "Int")
else if (send_type == "Logitech")
result := DllCall("IbInputSimulator\IbSendInit", "Int", 2, "Int", 0, "Ptr", 0, "Int")
else if (send_type == "LogitechGHubNew")
result := DllCall("IbInputSimulator\IbSendInit", "Int", 6, "Int", 0, "Ptr", 0, "Int")
else if (send_type == "Razer")
result := DllCall("IbInputSimulator\IbSendInit", "Int", 3, "Int", 0, "Ptr", 0, "Int")
else if (send_type == "DD"){
Expand Down
8 changes: 5 additions & 3 deletions Binding.AHK2/IbInputSimulator.ahk
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
; IbInputSimulator
; Description: Enable AHK to send keystrokes by drivers.
; Author: Chaoses Ib
; Version: 0.4
; Git: https://github.com/Chaoses-Ib/IbInputSimulator
; Authors: Chaoses-Ib, Pennywise007
; Version: 0.4.1
; Homepage: https://github.com/Chaoses-Ib/IbInputSimulator

#Requires AutoHotkey v2.0 64-bit

Expand All @@ -26,6 +26,8 @@ IbSendInit(send_type := "AnyDriver", mode := 1, args*){
result := DllCall("IbInputSimulator\IbSendInit", "Int", 1, "Int", 0, "Ptr", 0, "Int")
else if (send_type == "Logitech")
result := DllCall("IbInputSimulator\IbSendInit", "Int", 2, "Int", 0, "Ptr", 0, "Int")
else if (send_type == "LogitechGHubNew")
result := DllCall("IbInputSimulator\IbSendInit", "Int", 6, "Int", 0, "Ptr", 0, "Int")
else if (send_type == "Razer")
result := DllCall("IbInputSimulator\IbSendInit", "Int", 3, "Int", 0, "Ptr", 0, "Int")
else if (send_type == "DD"){
Expand Down
14 changes: 7 additions & 7 deletions Simulator/include/IbInputSimulator/InputSimulator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ namespace Send {
};

enum class SendType : uint32_t {
AnyDriver,
SendInput,
Logitech,
LogitechGHubNew,
Razer,
DD,
MouClassInputInjection
AnyDriver = 0,
SendInput = 1,
Logitech = 2,
LogitechGHubNew = 6,
Razer = 3,
DD = 4,
MouClassInputInjection = 5
};

using InitFlags = const uint32_t;
Expand Down
2 changes: 1 addition & 1 deletion Simulator/source/resource.rc.cmake.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
1 TYPELIB "versioninfo.rc"
1 TYPELIB "resource.rc"

1 VERSIONINFO
FILEVERSION @PROJECT_VERSION_MAJOR@, @PROJECT_VERSION_MINOR@, @PROJECT_VERSION_PATCH@, 0
Expand Down

0 comments on commit 34eb625

Please sign in to comment.