Auto formated using vs code to fix tab vs spaces indentation issues.

This commit is contained in:
mjbudd77 2021-06-12 22:30:36 -04:00
parent d6769d052c
commit 55bf88547c
3 changed files with 1598 additions and 1586 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -22,7 +22,7 @@ struct nesGamePadMap_t
~nesGamePadMap_t(void);
void clearMapping(void);
int parseMapping( const char *text );
int parseMapping(const char *text);
};
struct jsDev_t
@ -33,19 +33,19 @@ struct jsDev_t
jsDev_t(void);
//~jsDev_t(void);
void init( int idx );
void init(int idx);
int close(void);
SDL_Joystick *getJS(void);
bool isGameController(void);
bool isConnected(void);
void print(void);
int bindPort( int idx );
int unbindPort( int idx );
int bindPort(int idx);
int unbindPort(int idx);
int getBindPorts(void);
const char *getName(void);
const char *getGUID(void);
private:
private:
int devIdx;
int portBindMask;
std::string guidStr;
@ -54,39 +54,37 @@ struct jsDev_t
class GamePad_t
{
public:
public:
ButtConfig bmap[GAMEPAD_NUM_BUTTONS];
GamePad_t(void);
~GamePad_t(void);
int init( int port, const char *guid, const char *profile = NULL );
int init(int port, const char *guid, const char *profile = NULL);
const char *getGUID(void);
int loadDefaults(void);
int loadProfile( const char *name, const char *guid = NULL );
int loadProfile(const char *name, const char *guid = NULL);
int getDeviceIndex(void){ return devIdx; }
int setDeviceIndex( int devIdx );
int setMapping( const char *map );
int setMapping( nesGamePadMap_t *map );
int getDeviceIndex(void) { return devIdx; }
int setDeviceIndex(int devIdx);
int setMapping(const char *map);
int setMapping(nesGamePadMap_t *map);
int createProfile( const char *name );
int getMapFromFile( const char *filename, char *out );
int getDefaultMap( char *out, const char *guid = NULL );
int saveMappingToFile( const char *filename, const char *txtMap );
int saveCurrentMapToFile( const char *filename );
int deleteMapping( const char *name );
int createProfile(const char *name);
int getMapFromFile(const char *filename, char *out);
int getDefaultMap(char *out, const char *guid = NULL);
int saveMappingToFile(const char *filename, const char *txtMap);
int saveCurrentMapToFile(const char *filename);
int deleteMapping(const char *name);
private:
private:
int devIdx;
int portNum;
};
extern GamePad_t GamePad[4];
jsDev_t *getJoystickDevice( int devNum );
jsDev_t *getJoystickDevice(int devNum);
#endif