Difference between revisions of "love.joystick (Français)"

(Voir Aussi)
Line 1: Line 1:
 +
{{newin (Français)|[[0.5.0]]|050|type=module}}
 
Fournit une interface de manette de jeu (joystick) pour l'utilisateur.
 
Fournit une interface de manette de jeu (joystick) pour l'utilisateur.
 
== Fonctions ==
 
== Fonctions ==
Line 12: Line 13:
 
[[Category:Modules]]
 
[[Category:Modules]]
 
{{#set:Description=Fournit une interface de manette de jeu (joystick) pour l'utilisateur.}}
 
{{#set:Description=Fournit une interface de manette de jeu (joystick) pour l'utilisateur.}}
== Voir Aussi ==
+
== Voir également ==
 
* [[parent::love (Français)]]
 
* [[parent::love (Français)]]
 
* [[Joystick (Français)]]
 
* [[Joystick (Français)]]
  
== Autres Langues ==
+
== Autres langues ==
 
{{i18n|love.joystick}}
 
{{i18n|love.joystick}}

Revision as of 17:02, 27 December 2020

Disponible depuis LÖVE 0.5.0
Ce-tte module n'est pas supporté-e par des versions plus anciennes.

Fournit une interface de manette de jeu (joystick) pour l'utilisateur.

Fonctions

love.joystick.closeCloses a joystick.
love.joystick.getAxesReturns the position of each axis.
love.joystick.getAxisReturns the direction of the axis.
love.joystick.getBallReturns the change in ball position.
love.joystick.getGamepadMappingStringGets the full gamepad mapping string of the Joysticks which have the given GUID, or nil if the GUID isn't recognized as a gamepad.
love.joystick.getHatReturns the direction of a hat.
love.joystick.getJoystickCountGets the number of connected joysticks.
love.joystick.getJoysticksGets a list of connected Joysticks.
love.joystick.getNameReturns the name of a joystick.
love.joystick.getNumAxesReturns the number of axes on the joystick.
love.joystick.getNumBallsReturns the number of balls on the joystick.
love.joystick.getNumButtonsReturns the number of buttons on the joystick.
love.joystick.getNumHatsReturns the number of hats on the joystick.
love.joystick.getNumJoysticksReturns how many joysticks are available.
love.joystick.isDownChecks if a button on a joystick is pressed.
love.joystick.isOpenChecks if the joystick is open.
love.joystick.loadGamepadMappingsLoads a gamepad mappings string or file created with love.joystick.saveGamepadMappings.
love.joystick.openOpens up a joystick to be used.
love.joystick.saveGamepadMappingsSaves the virtual gamepad mappings of all recently-used Joysticks that are recognized as gamepads.
love.joystick.setGamepadMappingBinds a virtual gamepad input to a button, axis or hat.

Enums

GamepadAxisVirtual gamepad axes.
GamepadButtonVirtual gamepad buttons.
GamepadTypeTypes of gamepad controllers.
JoystickHatJoystick hat positions.
JoystickInputTypeTypes of Joystick inputs.
JoystickTypeTypes of Joysticks.

Voir également

Autres langues