Mouse 'press' detection

  • Posts: 20
1 year 9 months ago #1 by Citizenkane
In this previous topic I suggested exposing key 'press' detection to ReShade shaders, in addition to the existing toggle mode.

Is it possible to extend this functionality to mouse buttons too?

So rather than this:
uniform bool leftMouseDown< source = "mousebutton"; keycode = 0; toggle = false; >; //Is mouse0 down?

I'd like mouse input uniforms to look like this, similar to how keyboard input now is:
uniform bool leftMouseDown< source = "mousebutton"; keycode = 0; mode = ""; >; //Is mouse0 down?
uniform bool leftMousePress< source = "mousebutton"; keycode = 0; mode = "press"; >; //Was mouse0 pressed this frame?
uniform bool leftMouseToggle< source = "mousebutton"; keycode = 0; mode = "toggle"; >; //Toggles every time mouse0 is pressed

Please Log in or Create an account to join the conversation.

  • Posts: 3665
1 year 9 months ago #2 by crosire
The following user(s) said Thank You: Citizenkane

Please Log in or Create an account to join the conversation.

  • Posts: 20
1 year 9 months ago #3 by Citizenkane
Awesome! I'll try and build it myself manually, and then when the next public release happens I can finally release my responsive UI mask for VtM:B. I've been working on it on-and-off for over 8 months...

Please Log in or Create an account to join the conversation.