Added initialization in constructor for struct jport

This commit is contained in:
Dimitris Panokostas 2017-12-25 01:30:01 +01:00
parent 606aaea675
commit f848b6801a

View file

@ -79,16 +79,16 @@ struct inputdevconfig {
TCHAR shortid[16]; TCHAR shortid[16];
}; };
struct jport { struct jport {
int id; int id{};
int mode; // 0=def,1=mouse,2=joy,3=anajoy,4=lightpen int mode{}; // 0=def,1=mouse,2=joy,3=anajoy,4=lightpen
int autofire; int autofire{};
int mousemap; int mousemap{};
struct inputdevconfig idc; struct inputdevconfig idc {};
bool nokeyboardoverride; bool nokeyboardoverride{};
struct joypad_map_layout amiberry_custom_none; struct joypad_map_layout amiberry_custom_none;
struct joypad_map_layout amiberry_custom_hotkey; struct joypad_map_layout amiberry_custom_hotkey;
struct joypad_map_layout amiberry_custom_left_trigger; struct joypad_map_layout amiberry_custom_left_trigger;
struct joypad_map_layout amiberry_custom_right_trigger; struct joypad_map_layout amiberry_custom_right_trigger;
}; };
#define JPORT_UNPLUGGED -2 #define JPORT_UNPLUGGED -2
@ -573,9 +573,6 @@ extern struct uae_prefs currprefs, changed_prefs;
extern int machdep_init (void); extern int machdep_init (void);
extern void machdep_free (void); extern void machdep_free (void);
struct amiberry_customised_layout { struct amiberry_customised_layout {
// create structures for each 'function' button // create structures for each 'function' button