32 #ifndef ZENI_CONTROLLERS_H
33 #define ZENI_CONTROLLERS_H
44 class ZENI_CORE_DLL Controllers;
47 ZENI_CORE_EXT
template class ZENI_CORE_DLL Singleton<Controllers>;
56 #pragma warning( push )
57 #pragma warning( disable : 4251 )
59 static Uninit g_uninit;
60 static Reinit g_reinit;
62 #pragma warning( pop )
73 size_t get_num_controllers()
const;
76 const char * get_controller_name(
const Sint32 &
index)
const;
77 bool is_controller_connected(
const Sint32 &
index)
const;
80 void enable(
const bool &enable_);
83 void device_removed(
const Sint32 &
id);
84 void detect_removed();
86 void set_vibration(
const size_t &
index,
const float &
left,
const float &
right);
87 void reset_vibration_all();
90 void device_add_all();
93 Joystick_Info(
const Joystick_Info &rhs);
94 Joystick_Info & operator=(
const Joystick_Info &rhs);
107 int haptic_effect_id;
114 #pragma warning( push )
115 #pragma warning( disable : 4251 )
117 typedef std::vector<Joystick_Info *> Joystick_Array;
118 Joystick_Array m_joysticks;
120 #pragma warning( pop )
Controllers & get_Controllers()
Get access to the singleton.
int32_t Sint32
A signed 32-bit integer type.
struct _SDL_GameController SDL_GameController
static void init(struct bs2b *bs2b)
The generic template for any haptic effect.
The Controllers Singleton.
Controllers_Init_Failure()