notpeelz / reshade-xhair

A customizable, fullscreen-compatible crosshair overlay for ReShade
GNU General Public License v3.0
224 stars 52 forks source link

change RMB key to another button #14

Closed P-Nam closed 3 years ago

P-Nam commented 3 years ago

i use Spacebar for scope, can i change RMB to Spacebar button to disable crosshair and where to do it. Thank u

notpeelz commented 3 years ago

Change

uniform bool rightMouseDown <
  source = "mousebutton";
  keycode = 1;
  toggle = false;
>;

to

uniform bool rightMouseDown <
  source = "key";
  keycode = 0x20;
  mode = "";
>;

on line 301.

P-Nam commented 3 years ago

successfully, thank u very much