Fix warning, remove hard length
This commit is contained in:
@@ -68,7 +68,7 @@ void InputMapper::AddDefaultMappingsForCurrentGameIfUnmapped()
|
|||||||
struct AutoJoyMapping
|
struct AutoJoyMapping
|
||||||
{
|
{
|
||||||
Game game;
|
Game game;
|
||||||
char sDeviceDescription[64];
|
const char *sDeviceDescription;
|
||||||
bool bIgnoreAxes;
|
bool bIgnoreAxes;
|
||||||
int numMappings;
|
int numMappings;
|
||||||
struct {
|
struct {
|
||||||
@@ -160,7 +160,7 @@ void InputMapper::AutoMapJoysticksForCurrentGame()
|
|||||||
if( gc == GAME_CONTROLLER_INVALID )
|
if( gc == GAME_CONTROLLER_INVALID )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for( unsigned k=0; k<mapping.numMappings; k++ )
|
for( int k=0; k<mapping.numMappings; k++ )
|
||||||
{
|
{
|
||||||
DeviceInput di( device, mapping.mapping[k].deviceButton );
|
DeviceInput di( device, mapping.mapping[k].deviceButton );
|
||||||
GameInput gi( gc, mapping.mapping[k].gb );
|
GameInput gi( gc, mapping.mapping[k].gb );
|
||||||
|
|||||||
Reference in New Issue
Block a user