Exemplo n.º 1
0
        public static SharedMemory Create()
        {
            SharedMemory result = new SharedMemory
            {
                DebugPad    = RingLifo <DebugPadState> .Create(),
                TouchScreen = RingLifo <TouchScreenState> .Create(),
                Mouse       = RingLifo <MouseState> .Create(),
                Keyboard    = RingLifo <KeyboardState> .Create(),
            };

            for (int i = 0; i < result.Npads.Length; i++)
            {
                result.Npads[i] = NpadState.Create();
            }

            return(result);
        }
Exemplo n.º 2
0
 public static NpadInternalState Create()
 {
     return(new NpadInternalState
     {
         FullKey = RingLifo <NpadCommonState> .Create(),
         Handheld = RingLifo <NpadCommonState> .Create(),
         JoyDual = RingLifo <NpadCommonState> .Create(),
         JoyLeft = RingLifo <NpadCommonState> .Create(),
         JoyRight = RingLifo <NpadCommonState> .Create(),
         Palma = RingLifo <NpadCommonState> .Create(),
         SystemExt = RingLifo <NpadCommonState> .Create(),
         FullKeySixAxisSensor = RingLifo <SixAxisSensorState> .Create(),
         HandheldSixAxisSensor = RingLifo <SixAxisSensorState> .Create(),
         JoyDualSixAxisSensor = RingLifo <SixAxisSensorState> .Create(),
         JoyDualRightSixAxisSensor = RingLifo <SixAxisSensorState> .Create(),
         JoyLeftSixAxisSensor = RingLifo <SixAxisSensorState> .Create(),
         JoyRightSixAxisSensor = RingLifo <SixAxisSensorState> .Create(),
         GcTrigger = RingLifo <NpadGcTriggerState> .Create(),
     });
 }