Merge pull request #240 from XLabsProject/fix-gamepad
[Gamepad] Fix hook conflitcs
This commit is contained in:
commit
9f574be237
@ -1531,11 +1531,9 @@ namespace Components
|
||||
gpad_present.setRaw(gpadPresent);
|
||||
}
|
||||
|
||||
|
||||
void Gamepad::IN_Frame_Hk()
|
||||
{
|
||||
// Call original method
|
||||
Utils::Hook::Call<void()>(0x64C490)();
|
||||
RawMouse::IN_MouseMove();
|
||||
|
||||
IN_GamePadsMove();
|
||||
}
|
||||
|
@ -146,7 +146,6 @@ namespace Components
|
||||
{
|
||||
Utils::Hook(0x475E65, RawMouse::IN_MouseMove, HOOK_JUMP).install()->quick();
|
||||
Utils::Hook(0x475E8D, RawMouse::IN_MouseMove, HOOK_JUMP).install()->quick();
|
||||
Utils::Hook(0x475E9E, RawMouse::IN_MouseMove, HOOK_JUMP).install()->quick();
|
||||
|
||||
Utils::Hook(0x467C03, RawMouse::IN_Init, HOOK_CALL).install()->quick();
|
||||
Utils::Hook(0x64D095, RawMouse::IN_Init, HOOK_JUMP).install()->quick();
|
||||
|
@ -6,6 +6,9 @@ namespace Components
|
||||
{
|
||||
public:
|
||||
RawMouse();
|
||||
|
||||
static void IN_MouseMove();
|
||||
|
||||
private:
|
||||
static Dvar::Var M_RawInput;
|
||||
static int MouseRawX, MouseRawY;
|
||||
@ -15,6 +18,5 @@ namespace Components
|
||||
static void IN_RawMouseMove();
|
||||
static void IN_RawMouse_Init();
|
||||
static void IN_Init();
|
||||
static void IN_MouseMove();
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user