b0.6.3 : Gamepad
love2d.js » Devlog
gamepad support
- love.joystiks_getJoysticks() -> array of object : Joystick class
- love.joystick_getJoystickCount() -> number of gamepad connected
Joystick class = gamepad
- Joystick.getButtonCount() -> number // get number of button
- Joystick.getAxisCount() -> number // get number of axis and analog button
- Joystick.getId() -> number
- Joystick.getName() -> string
- Joystick.isDown(id:number) -> bool // return true if button id is down
- Joystick.getAxis(id:number) -> number -1.0 -> 1.0 // axis or analog button
Get love2d.js
Download NowName your own price
love2d.js
framework love2d for javascript game
Status | In development |
Category | Tool |
Author | Oblerion Studio |
Tags | Game engine, GitHub, LÖVE |
Languages | English |
More posts
- b0.6.2 : Write/Load SaveMay 31, 2024
- Offline documentation : manualApr 09, 2024
- b0.6 : Refactoring + open urlOct 23, 2023
- b0.5 : like a moduleOct 31, 2022
- b0.4 touch fixesJun 01, 2022
Leave a comment
Log in with itch.io to leave a comment.