Welcome, Guest.
Username: Password: Remember me

TOPIC: some problems in 2.0.3.1120

some problems in 2.0.3.1120 7 months 3 weeks ago #1

1. I can't get the mouse keycode to work while other keycodes work just fine. (for reference, I'm using razor mouse)

uniform bool LMB < source = "key"; keycode = 0x01; toggle = false; >; // didn't work
uniform bool F3 < source = "key"; keycode = VK_F3; toggle = false; >; // works normally

2. Using tex2Dfetch(sampler, int2) as stated in reference doc will return compiler error, changing to int4 fix the problem.

3. Is it possible to declare a global array? Tried with several different prefix, it still returns the "initial value must be literal" error.
(tested with array: float test[5] = { 0, 1, 2, 3, 4 }; )
The administrator has disabled public write access.

some problems in 2.0.3.1120 7 months 3 weeks ago #2

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 2437
  • Thank you received: 1385
1. See reshade.me/forum/troubleshooting/1922-mo...ns-to-toggle-effects.
2. Good catch. Need to fix that. Using int4 is probably better, because that would allow to specify a mip-level too.
3. No, only local arrays are supported.
Cheers, crosire =)
Last Edit: 7 months 3 weeks ago by crosire.
The administrator has disabled public write access.
The following user(s) said Thank You: kingeric1992

some problems in 2.0.3.1120 7 months 3 weeks ago #3

The post mainly discuss on toggling effect, which I assume is focusing on technique syntax.

So is it that there isn't a mouse keycode in current version, or there is but I'm doing it wrong?
Was hoping to have uniform bool for mouse buttons like other keys.

And about the key combinations, are they still available?
Last Edit: 7 months 3 weeks ago by kingeric1992.
The administrator has disabled public write access.

some problems in 2.0.3.1120 7 months 3 weeks ago #4

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 2437
  • Thank you received: 1385
The mouse doesn't have keycodes in the traditional sense. They are listed as virtual key codes, because Win32 has a few functions which work with mouse buttons too, but those are deprecated. The mouse and keyboard are separate and are handled separatly.
That's why anything in ReShade that asks for a keycode only accepts exactly that: a keyboard keycode, nothing else.
Key combinations are still available, sure.
Cheers, crosire =)
The administrator has disabled public write access.

some problems in 2.0.3.1120 7 months 3 weeks ago #5

OK, thanks. And if possible, may I make the request for mouse clicks?

Was able to rig up a UI with the newly added mouse pos, currently using keyborad to act as LMB on sliders though. Would be nice if mouse click is available.

Here is the screenshot on the progress.
The administrator has disabled public write access.

some problems in 2.0.3.1120 7 months 3 weeks ago #6

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 2437
  • Thank you received: 1385
Nice job! And sure, will do.
Cheers, crosire =)
The administrator has disabled public write access.
The following user(s) said Thank You: kingeric1992