Page 6 of 6

Re: [Library] MouseDelta - See mouse input the way games see it. (Use for mouse axis->key or joystick)

Posted: 02 Nov 2021, 12:54
by MrDodel
@Download Shrimp

You need too grab the code from post #1 (Above the sample script line) save that as MouseDelta.ahk (into your script folder) and then in your main script add the line at the top #include MouseDelta.Ahk

You can then copy the code from Sample #1 and it should run.

Re: [Library] MouseDelta - See mouse input the way games see it. (Use for mouse axis->key or joystick)

Posted: 03 Nov 2021, 17:56
by Download Shrimp
@MrDodel
Problem solved, thank you so much.

Re: [Library] MouseDelta - See mouse input the way games see it. (Use for mouse axis->key or joystick)

Posted: 03 Sep 2022, 06:07
by alexanderlovehya
Is it possible to hide mouse move events? I want to convert mouse movement into keyboard strokes, but the application is still detecting my mouse movements in addition to keyboard strokes. I'd like the application to only see the keyboard strokes and not my mouse movement.

Re: [Library] MouseDelta - See mouse input the way games see it. (Use for mouse axis->key or joystick)

Posted: 03 Nov 2022, 13:14
by Celsius
So, let's say I don't want the X and Y sensitivities to be uniform. Can anyone help me with this or? This would interesting to know.

I'm guessing on the line:

if (MouseID){
x *= ScaleFactor, y *= ScaleFactor
DllCall("mouse_event",uint,1,int, x ,int, y,uint,0,int,0)

Would I need to change something here? Or, is it something more complex?

Re: [Library] MouseDelta - See mouse input the way games see it. (Use for mouse axis->key or joystick)

Posted: 28 Sep 2023, 00:32
by Sad
Hello!

I'm using the Sniper mode, it works very well.
I'd like to know if there is a way to turn it "ON" by default ?

Thanks!

Re: [Library] MouseDelta - See mouse input the way games see it. (Use for mouse axis->key or joystick)

Posted: 28 Sep 2023, 01:14
by Sad
Sad wrote:
28 Sep 2023, 00:32
Hello!

I'm using the Sniper mode, it works very well.
I'd like to know if there is a way to turn it "ON" by default ?

Thanks!
I succeed by changing the

Code: Select all

SniperMode
variables from 1 to 0, and vice-versa, then by adding an extra line

Code: Select all

md.SetState(!SniperMode)
after the line

Code: Select all

md := new MouseDelta("MouseEvent").Start()
I'm not sure this was the best way, but it works.

Is there a way to make the sniper mode work only when the game is launched ? I tried with

Code: Select all

#If WinActive("ahk_exe SoTGame.exe")
but no luck so far... and despite I know the block is working for the other hotkeys.