mirror of
https://github.com/raphnet/gc_n64_usb-v3
synced 2025-02-23 06:11:46 -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
|
#define LOOP_MAX 0xFFFF
|
||||||
static unsigned int _loop_count;
|
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)
|
static void decideVibration(void)
|
||||||
{
|
{
|
||||||
// if (!_loop_count)
|
|
||||||
// vibration_on = 0;
|
|
||||||
|
|
||||||
if (!vibration_on) {
|
if (!vibration_on) {
|
||||||
gamepad_vibrate = 0;
|
gamepad_vibrate = 0;
|
||||||
} else {
|
} else {
|
||||||
@ -528,9 +514,10 @@ int main(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
usb_doTasks();
|
usb_doTasks();
|
||||||
|
|
||||||
_delay_ms(5);
|
_delay_ms(5);
|
||||||
//effect_loop();
|
|
||||||
decideVibration();
|
decideVibration();
|
||||||
|
|
||||||
if (last_v != gamepad_vibrate) {
|
if (last_v != gamepad_vibrate) {
|
||||||
if (pad && pad->setVibration) {
|
if (pad && pad->setVibration) {
|
||||||
pad->setVibration(gamepad_vibrate);
|
pad->setVibration(gamepad_vibrate);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user