Skip to content

Commit 75331a1

Browse files
committed
SL and SR don't exist on pro controller.
1 parent ba35fba commit 75331a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

SerialPrograms/Source/NintendoSwitch/Controllers/SysbotBase/SysbotBase3_ProController.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,12 @@ void ProController_SysbotBase3::push_state(const Cancellable* cancellable, WallD
166166
if (m_buttons[15].is_busy()) nx_button |= (uint64_t)1 << 14; // Right
167167
if (m_buttons[16].is_busy()) nx_button |= (uint64_t)1 << 15; // Down
168168
if (m_buttons[17].is_busy()) nx_button |= (uint64_t)1 << 16; // Left
169+
#if 0 // Don't exist on pro controller.
169170
if (m_buttons[18].is_busy()) nx_button |= (uint64_t)1 << 24; // Left SL
170171
if (m_buttons[19].is_busy()) nx_button |= (uint64_t)1 << 25; // Left SR
171172
if (m_buttons[20].is_busy()) nx_button |= (uint64_t)1 << 26; // Right SL
172173
if (m_buttons[21].is_busy()) nx_button |= (uint64_t)1 << 27; // Right SR
174+
#endif
173175

174176
{
175177
DpadPosition dpad = m_dpad.is_busy() ? m_dpad.position : DPAD_NONE;
@@ -229,7 +231,7 @@ void ProController_SysbotBase3::push_state(const Cancellable* cancellable, WallD
229231
m_connection.write_data(message);
230232

231233
if (GlobalSettings::instance().LOG_EVERYTHING){
232-
m_logger.log("sys-botbase: " + message);
234+
m_logger.log("sys-botbase3: " + message);
233235
}
234236
}
235237

0 commit comments

Comments
 (0)