bebert a écrit:l'USB 55
Ben alors tu peux l'utiliser comme un joystick
extrait de la doc que tu as surement lue
Joystick mapping – only for USB devices
Joystick axis and buttons mapping can be setup via Joystick mapping dialog. Got to ‘Peripherals’ and select ‘Joystick settings…’. The dialog on Figure 5 appears.
Each axis can be assigned a analog input. In addition, analog to digital mapping option can be enabled. This allows user to connect an analog joystick to a PoKeys devices and simulate key presses for each direction of the joystick. To do so, first check ‘Map to key’ option. Then set the dead band (when input value will be between lower and upper dead band margins, no keys will be activated) using sliders. In the lower part of the window, select the mapping options.
For simple direct mapping (pin input status is directly reflected in joystick button status) use the ‘Direct mapping’ option and select pin number to be associated with selected joystick button. If more advanced behavior is needed (joystick button is pressed for a short time only on transitions of pin status), user should select ‘Triggered mapping’ option to select one pin that triggers selected joystick button on off-to-on transition (Down Event) and one pin that triggers this joystick button on on-to-off transition (Up Event).
If joystick button mapping is to be used in connection with encoder inputs, use ‘Triggered mapping’ option (encoder’s values cannot be directly translated into direct mapping) and select a pin with the appropriate encoder channel. For example: pins 5 and 6 are set up as digital inputs with encoder (channel A on pin 5 and channel B on pin 6). When pin 5 is selected as Down event pin for joystick Button 2 and pin 6 is selected as Down event pin for joystick Button 3, rotating the encoder in positive direction will trigger joystick Button 2 on each detent. Similarly, rotating the encoder in negative direction, joystick Button 3 will be triggered on each detent. Up Event pin option cannot be used in connection with encoders.
Figure 5: Joystick mapping settingsC'est à la page 19
ça peut être très pratique pour contourner un problème en rapport avec les combinaisons de touche, comme tu semble rencontrer
A+
Alain