1#ifndef SRC_LOVE_JOYSTICK_H_
2#define SRC_LOVE_JOYSTICK_H_
7#include "Types/Input/Joystick.h"
20 void load(pntr_app* app);
84 int getButtonKey(
const std::string& name);
85 std::string getButtonName(
int key);
88 std::vector<Joystick*> m_joysticks;
Provides an interface to connected joysticks.
Definition joystick.h:17
Joystick * operator[](int joystick)
Retrieve the given joystick.
int getJoystickCount()
Gets the number of connected joysticks.
bool isDown(int joystick, int button)
Checks if a button number is pressed on a joystick.
std::vector< Joystick * > & getJoysticks()
Gets a list of connected Joysticks.
bool isDown(int joystick, const std::string &button)
Checks if a button is pressed on a joystick.
This covers all the modules available through ChaiLove.
Definition audio.h:9