A question about ToogleKey in reshade 1.1

  • That_aint_working42
  • That_aint_working42's Avatar Topic Author
  • Offline
  • Posts: 18
4 years 1 week ago #1 by That_aint_working42
How to bind toogling some shader to a key? For example, I remove the text "RFX ToogleKey" near "BloomToogleKey" and type "g" instead. Then when I launch game with that effect shader doesn't load, and I got error text in left screen corner. Am I doing something wrong?

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

  • Posts: 3668
4 years 1 week ago #2 by crosire
Use keycodes or the "VK_" defines. The keycode for "g" is "0x47".

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

  • That_aint_working42
  • That_aint_working42's Avatar Topic Author
  • Offline
  • Posts: 18
4 years 1 week ago - 4 years 1 week ago #3 by That_aint_working42
How can I check out what keycode matches which key?

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

  • Posts: 790
4 years 1 week ago - 4 years 1 week ago #4 by Ganossa

That_aint_working42 wrote: How can I check out what keycode matches which key?


Check /ReShade/KeyCodes.h ;)

EDIT: In 1.1 it might be in /ReShade/Common/KeyCodes.h

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

  • Posts: 3668
4 years 1 week ago #5 by crosire

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

  • That_aint_working42
  • That_aint_working42's Avatar Topic Author
  • Offline
  • Posts: 18
4 years 1 week ago #6 by That_aint_working42
All right, thanks for help guys.

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

  • Posts: 20
4 years 1 week ago #7 by Golgotha
Quick tip on this that has saved me loads of time --> so much so that I've been able to do a lot more experimenting with shaders without the hassle of referring to that keycodes.h file all of the time.

There are2 sets of codes that correspond to all the keys on the keyboard. I don't know why everyone sticks to the VK..... series of codes, as they seem unnecessarily complicated when you compare it to the next keyboard diagram in the keycodes.h file which assigns a simple number to each of the keys arranged sequentially.

The proverbial lightening bolt struck me when I realized the num pad 0-9 codes were sequential from 96-105. I keep the default global reshade toggle at 96 for num pad 0 and can quickly assign hotkeys for 9 other shaders without ever looking at that keycodes.h

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