mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-24 12:56:53 +02:00
Support multiple controllers for local multiplayer (#1583)
* Support multiple controllers for local co-op
This commit is contained in:
@@ -68,6 +68,8 @@ inline int controller_get_axis(int min, int max, int value) {
|
||||
|
||||
void Connect(int id);
|
||||
void Disconnect(int id);
|
||||
// Moves the keyboard to the next player (shared with player 1, then 1-4) while the game runs.
|
||||
void CycleKeyboardPlayer();
|
||||
void SetButton(int id, uint32_t button, bool down);
|
||||
void SetAxis(int id, Axis axis, int value);
|
||||
void SetRightStick(int id, int x, int y);
|
||||
@@ -76,6 +78,8 @@ void SetSensor(int id, Sensor sensor, const float* data, uint64_t time_us);
|
||||
void ToggleGyroEmulation(int id);
|
||||
void ResetInputState();
|
||||
int GetActiveControllerId();
|
||||
// True when the player has a keyboard or gamepad assigned.
|
||||
bool IsPlayerConnected(int player);
|
||||
|
||||
enum class Setting { SpeakerVolume, VibrationIntensity, TriggerEffectIntensity };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user