MCPcopy Create free account
hub / github.com/Tylemagne/Gopher360 / handleDisableButton

Method handleDisableButton

Windows/Gopher/Gopher/Gopher.cpp:179–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179void Gopher::handleDisableButton()
180{
181 //Select + Start will disable.
182 setXboxClickState(CONFIG_DISABLE);
183 if (_xboxClickIsDown[CONFIG_DISABLE])
184 {
185 _disabled = !_disabled;
186
187 if (_disabled) {
188 pulseVibrate(400, 10000, 10000);
189 }
190 else {
191 pulseVibrate(400, 65000, 65000);
192 }
193 }
194}
195
196void Gopher::handleVibrationButton()
197{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected