Beispiel #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);
    }
Beispiel #2
0
    // 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
                );
    }
Beispiel #3
0
    // 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
                                 );
        }
    }
Beispiel #4
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 );
	}