示例#1
0
        public override void Initialize()
        {
            base.Initialize();

            input = Services.GetService <InputManager>();
            input.TextInput?.EnabledTextInput();

            graphicsDeviceService = Services.GetService <IGraphicsDeviceService>();
        }
示例#2
0
        internal static void Initialize(StrideInputManager input)
        {
            if (!initialized)
            {
                initialized = true;

                // Setup the engine's input manager ref
                StrideInputManager = input;
            }
        }
示例#3
0
 private IGamePadDevice GetGamePad(InputManager manager)
 {
     return(PadIndex >= 0 ? manager.GetGamePadByIndex(PadIndex) : manager.DefaultGamePad);
 }
示例#4
0
 public override void Initialize(InputManager inputManager)
 {
 }