Releases: backslash-f/gcoverseer
Releases · backslash-f/gcoverseer
v1.0.0
v0.2.2
Fixes an issue where the initial isConnected
value would be false
even when controllers were connected.
v0.2.1
Minor refactor around the log category.
v0.2.0
A bunch of new APIs are available:
API | Description |
---|---|
controllers() |
Returns all controllers that are connected to the device. E.g. Dualshock, Xbox, Siri Remote controllers, etc. |
extendedGamepadControllers() |
Returns all controllers supporting the extendedGamepad profile that are connected to the device. E.g. Dualshock, Xbox controllers, etc. |
dualshockControllers() |
Returns all DualShock controllers that are connected to the device. |
xboxControllers() |
Returns all Xbox controllers that are connected to the device. |
microGamepadControllers() |
Returns all controllers supporting the microGamepad profile that are connected to the device. E.g. Apple's Siri Remote. |
motionControllers() |
Returns all controllers supporting the motion profile that are connected to the device. |
controllerFor(playerIndex:) |
Returns the controller for the player 1, player 2, etc. |
v0.1.0
In the very first pre-release, listen to game controller connect / disconnect events as follows:
let gcOverseer = GCOverseer()
gcOverseer.$isGameControllerConnected
.sink { isConnected in
// Do something
}
.store(in: &cancellables)
}