univrsal / input-overlay

Show keyboard, gamepad and mouse input on stream
GNU General Public License v2.0
2.63k stars 235 forks source link

Valorant Presets #392

Closed LocksmithArmy closed 3 months ago

LocksmithArmy commented 3 months ago

This update adds a wasd preset specifically for the game Valorant. It also adds some more mouse presets that might be more appealing.

Finally it alters the mouse_highlight.html code to skip the first 0.0 point, so the mouse hopefully wont flicker back to center as much during gameplay.

LocksmithArmy commented 3 months ago

Added a wasd-valorant-micro that requires a spacebar that is smaller, so edited the wasd.png aswell.

univrsal commented 3 months ago

Looks fine to me but could you undo the changes in mouse_highlight.html? That file is an overlay that puts a red circle around the mouse cursor. It's not connected to issue with the flickering back to the center.

LocksmithArmy commented 3 months ago

Couldnt figure out how to remove part of the commit, so I just undid the changes manually.

One day Ill figure out that flicker ;)

univrsal commented 3 months ago

https://github.com/univrsal/input-overlay/blob/master/src/util/element/element_mouse_movement.cpp#L77-L102 would be where I'd start looking. I've tried to smooth the mouse movements before, but it didn't really help.

univrsal commented 3 months ago

Thanks for the presets!

LocksmithArmy commented 3 months ago

Thanks for the direction. Making presets is kinda fun :)