mirror of
https://github.com/raphnet/gc_n64_usb-v3
synced 2024-12-21 14:58:51 -05:00
Export the number of players from main
This commit is contained in:
parent
786088e4b1
commit
5d06a6d6a3
3
main.c
3
main.c
@ -541,6 +541,7 @@ void hwinit(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
uint8_t num_players = 1;
|
||||||
unsigned char current_pad_type[NUM_CHANNELS] = { };
|
unsigned char current_pad_type[NUM_CHANNELS] = { };
|
||||||
|
|
||||||
Gamepad *detectPad(unsigned char chn)
|
Gamepad *detectPad(unsigned char chn)
|
||||||
@ -661,7 +662,6 @@ int main(void)
|
|||||||
uint8_t gamepad_vibrate = 0;
|
uint8_t gamepad_vibrate = 0;
|
||||||
uint8_t state = STATE_WAIT_POLLTIME;
|
uint8_t state = STATE_WAIT_POLLTIME;
|
||||||
uint8_t channel;
|
uint8_t channel;
|
||||||
uint8_t num_players = 1;
|
|
||||||
uint8_t i;
|
uint8_t i;
|
||||||
|
|
||||||
hwinit();
|
hwinit();
|
||||||
@ -851,7 +851,6 @@ int keyboard_main(void)
|
|||||||
uint8_t gamepad_vibrate = 0;
|
uint8_t gamepad_vibrate = 0;
|
||||||
uint8_t state = STATE_WAIT_POLLTIME;
|
uint8_t state = STATE_WAIT_POLLTIME;
|
||||||
uint8_t channel;
|
uint8_t channel;
|
||||||
uint8_t num_players = 1;
|
|
||||||
uint8_t i;
|
uint8_t i;
|
||||||
|
|
||||||
hwinit();
|
hwinit();
|
||||||
|
3
main.h
3
main.h
@ -1,8 +1,11 @@
|
|||||||
#ifndef _main_h__
|
#ifndef _main_h__
|
||||||
#define _main_h__
|
#define _main_h__
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
extern unsigned char current_pad_type[NUM_CHANNELS];
|
extern unsigned char current_pad_type[NUM_CHANNELS];
|
||||||
|
extern uint8_t num_players;
|
||||||
|
|
||||||
#endif // _main_h__
|
#endif // _main_h__
|
||||||
|
Loading…
Reference in New Issue
Block a user