Raicuparta / uuvr

Universal VR mod for Unity games
https://raicuparta.com/rai-pal
GNU General Public License v3.0
87 stars 6 forks source link

[Feature Request] Configurable Keybinds #9

Open Bluscream opened 7 months ago

Bluscream commented 7 months ago
keyboard_toggle_vr = cfg_keyboard_shortcuts.CreateEntry("key_toggle_vr", "f11", "Key to toggle VR");
keyboard_center_vr = cfg_keyboard_shortcuts.CreateEntry("key_center_vr", "f12", "Key to center VR");
keyboard_reparent_cam = cfg_keyboard_shortcuts.CreateEntry("key_reparent_cam", "f2", "Key to reparent camera");
keyboard_scale_up = cfg_keyboard_shortcuts.CreateEntry("key_scale_up", "f4", "Key to scale up");
keyboard_scale_down = cfg_keyboard_shortcuts.CreateEntry("key_scale_down", "f3", "Key to scale down");
keyboard_scale_to_user = cfg_keyboard_shortcuts.CreateEntry("key_scale_to_user", "f5", "Key to scale to user");

BepInEx Docs: https://docs.bepinex.dev/v5.4.21/api/BepInEx.Configuration.KeyboardShortcut.html

You don't need to implement your own UI, users can edit the config file or use https://github.com/BepInEx/BepInEx.ConfigurationManager