/* nn::hid: one Pro Controller (FullKey style) on Npad No.1, from every XInput gamepad and the keyboard and mouse at once. Buttons map by position (the Xbox bottom face button is the Switch's bottom one, B). (hookshot) What presses each button, on a gamepad and on the keyboard, is the player's: the Insert menu's Controls page (gpu/vk/vk_menu.cpp) changes it, kept in triforce_options.ini (binds_load). The defaults: Keyboard (totk-pc-recomp's layout): WASD left stick, arrows or IJKL right stick (camera), Space X (jump), E A (action), Shift B (run/cancel), Q L (abilities), R R, Z ZL, X or F ZR (bow), Ctrl left-stick click (crouch), C right-stick click (first person), Tab or Enter Plus, M Minus (map), 1 2 3 4 d-pad left, up, right, down. Only while the game's window is in front (the key state is global). Mouse (after a click in the window, display.c; Esc releases): its motion is the right stick (mouse panning, mouse_stick), or with the Insert menu's "Mouse camera" set to Native (HOS_MOUSE_NATIVE=1 or 0 overrides it) turns the camera itself (mouse_native.c); left button Y (attack), right button ZL (shield, lock on). - and = change its sensitivity (x0.8 / x1.25, shown in the title bar, kept by the Insert menu's Mouse sensitivity row); HOS_MOUSE_SENS= sets it, HOS_MOUSE_INVERT_Y=1 (or the menu's Invert mouse vertical) flips up/down. Controllers count only while the game's window is in front, like the keyboard, unless the Insert menu's "Controller in background" is on (or HOS_INPUT_BACKGROUND=1; =0 keeps them to the window in front whatever the menu says): then a game streamed from a screen of its own, or left running behind another window, still follows the pad. The keyboard and mouse stay with the window in front either way. HOS_INPUT_SCRIPT (test runs): timed presses added to the input, ":