Fix warning, remove hard length

This commit is contained in:
Glenn Maynard
2003-05-28 03:53:20 +00:00
parent a5d570067e
commit 8093060a90
+2 -2
View File
@@ -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 );