// Input public Input(int numButtonMappings, int numAxisMappings, int padIndex #if WINDOWS , KeyboardD keyboard, MouseD mouse #endif ) { ButtonMappings = new List <List <ButtonMapping> >(numButtonMappings); for (int i = 0; i < numButtonMappings; ++i) { ButtonMappings.Add(new List <ButtonMapping>()); } AxisMappings = new List <List <AxisMapping> >(numAxisMappings); for (int i = 0; i < numAxisMappings; ++i) { AxisMappings.Add(new List <AxisMapping>()); } #if WINDOWS Keyboard = keyboard; Mouse = mouse; #endif Controller = new ControllerD(padIndex); }
// GameInput public GameInput( int numButtonMappings, int numAxisMappings ) { #if WINDOWS Keyboard = new KeyboardD(); Mouse = new MouseD(); #endif Input = new Input[ NumPads ]; for ( int i = 0; i < Input.Length; ++i ) Input[ i ] = new Input( numButtonMappings, numAxisMappings, i #if WINDOWS , Keyboard, Mouse #endif ); }
// GameInput public GameInput(int numButtonMappings, int numAxisMappings) { #if WINDOWS Keyboard = new KeyboardD(); Mouse = new MouseD(); #endif Input = new Input[NumPads]; for (int i = 0; i < Input.Length; ++i) { Input[i] = new Input(numButtonMappings, numAxisMappings, i #if WINDOWS , Keyboard, Mouse #endif ); } }
// Input public Input( int numButtonMappings, int numAxisMappings, int padIndex #if WINDOWS , KeyboardD keyboard, MouseD mouse #endif ) { ButtonMappings = new List< List< ButtonMapping > >( numButtonMappings ); for ( int i = 0; i < numButtonMappings; ++i ) ButtonMappings.Add( new List< ButtonMapping >() ); AxisMappings = new List< List< AxisMapping > >( numAxisMappings ); for ( int i = 0; i < numAxisMappings; ++i ) AxisMappings.Add( new List< AxisMapping >() ); #if WINDOWS Keyboard = keyboard; Mouse = mouse; #endif Controller = new ControllerD( padIndex ); }