Esempio n. 1
0
    // 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);
    }
Esempio n. 2
0
	// 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 );
	}