mirror of
https://github.com/raphnet/gc_n64_usb-v3
synced 2025-02-22 22:02:57 -05:00
remove unused code
This commit is contained in:
parent
f29ced5298
commit
829ba2b560
17
main.c
17
main.c
@ -246,22 +246,8 @@ static unsigned char _FFB_effect_index;
|
||||
#define LOOP_MAX 0xFFFF
|
||||
static unsigned int _loop_count;
|
||||
|
||||
#if 0
|
||||
static void effect_loop()
|
||||
{
|
||||
if (_loop_count) {
|
||||
if (_loop_count != LOOP_MAX) {
|
||||
_loop_count--;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
static void decideVibration(void)
|
||||
{
|
||||
// if (!_loop_count)
|
||||
// vibration_on = 0;
|
||||
|
||||
if (!vibration_on) {
|
||||
gamepad_vibrate = 0;
|
||||
} else {
|
||||
@ -528,9 +514,10 @@ int main(void)
|
||||
}
|
||||
|
||||
usb_doTasks();
|
||||
|
||||
_delay_ms(5);
|
||||
//effect_loop();
|
||||
decideVibration();
|
||||
|
||||
if (last_v != gamepad_vibrate) {
|
||||
if (pad && pad->setVibration) {
|
||||
pad->setVibration(gamepad_vibrate);
|
||||
|
Loading…
x
Reference in New Issue
Block a user