コード例 #1
0
ファイル: Input.cs プロジェクト: swiercc/SpacebarClicker
    // 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);
    }
コード例 #2
0
ファイル: GameInput.cs プロジェクト: JacobNorlin/project-duck
    // 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
                );
    }
コード例 #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
                                 );
        }
    }
コード例 #4
0
ファイル: Input.cs プロジェクト: tuannsofta/kinect4bag
	// 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 );
	}