Skip to content

Pad: Add controller ejection

Codacy Production / Codacy Static Code Analysis required action Nov 29, 2023 in 0s

1 new issue (0 max.) of at least medium severity.

Annotations

Check warning on line 552 in pcsx2/SIO/Pad/Pad.cpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

pcsx2/SIO/Pad/Pad.cpp#L552

Either the condition '!currentPad' is redundant or there is possible null pointer dereference: currentPad.

Check notice on line 573 in pcsx2/SIO/Pad/Pad.cpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

pcsx2/SIO/Pad/Pad.cpp#L573

Variable 'currentPad' is assigned a value that is never used.

Check notice on line 576 in pcsx2/SIO/Pad/Pad.cpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

pcsx2/SIO/Pad/Pad.cpp#L576

Condition 'currentPad' is always true