subscribeToGamepadConnectionEvents#
Fully qualified name: carb::input::subscribeToGamepadConnectionEvents
Defined in carb/input/InputUtils.h
-
template<typename Functor>
inline SubscriptionId carb::input::subscribeToGamepadConnectionEvents(
)# Subscribes to the gamepad connection event stream.
Note
Once subscribed
functoris called for all previously created gamepads.- Parameters:
input – The IInput interface.
functor – An invocable object to be called on each gamepad event. Prototype is
void(const GamepadConnectionEvent&).
- Returns: