zack06007
“Have you an exemple for key_QUIT to assign?” - If you grab the CLI tool.
Assuming you are running on a Pi4 (if not use the appropriate download):
wget https://github.com/DirtBagXon/hypjsch/releases/download/hypjsch_v1.0/Hypseus_jsconfig_Helper-aarch64.tgz
tar -zxvf Hypseus_jsconfig_Helper-aarch64.tgz
./hypjsch_cli
Then press the button on your joystick you want to use for QUIT. It will print something like:
Microsoft X-Box 360 pad: Button: 004 - KEY_QUIT = SDLK_ESCAPE 0 004
Open the hypinput.ini
and change the line KEY_QUIT
to add 004
to the end as above. So in the config file it will look something like this:
[KEYBOARD]
KEY_UP = SDLK_UP 0 0 -002
KEY_DOWN = SDLK_DOWN 0 0 +002
KEY_LEFT = SDLK_LEFT 0 0 -001
KEY_RIGHT = SDLK_RIGHT 0 0 +001
KEY_COIN1 = SDLK_5 0 0
KEY_COIN2 = SDLK_6 0 0
KEY_START1 = SDLK_1 0 0
KEY_START2 = SDLK_2 0 0
KEY_BUTTON1 = SDLK_LCTRL 0 0
KEY_BUTTON2 = SDLK_LALT 0 0
KEY_BUTTON3 = SDLK_SPACE 0 0
KEY_SKILL1 = SDLK_LSHIFT 0 0
KEY_SKILL2 = SDLK_z 0 0
KEY_SKILL3 = SDLK_x 0 0
KEY_SERVICE = SDLK_9 0 0
KEY_TEST = SDLK_F2 0 0
KEY_RESET = SDLK_0 0 0
KEY_SCREENSHOT = SDLK_F12 0 0
KEY_QUIT = SDLK_ESCAPE 0 004
KEY_PAUSE = SDLK_p 0 0
KEY_CONSOLE = SDLK_BACKSLASH 0 0
KEY_TILT = SDLK_t 0 0
END
Repeat, pressing the other joystick buttons you want for other functions, and add them to the appropriate KEY_
in hypinput.ini
as above.
Read this a couple of times to understand:
https://github.com/DirtBagXon/hypseus-singe/blob/master/doc/hypinput.ini