Ejemplo n.º 1
0
        public MainInterface()
        {
            // Set up the listener
            listener             = new LeapControl();
            listener.FrameReady += UpdateFrame;

            // Set up both modules with the various settings
            mouse    = new PointerModule();
            keyboard = new KeyboardModule();

            // Get the screen size - could scale based on a switch statement from this, set some properties etc
            screenWidth  = SystemParameters.PrimaryScreenWidth;
            screenHeight = SystemParameters.PrimaryScreenHeight;
        }
Ejemplo n.º 2
0
        public MainInterface()
        {
            // Set up the listener
            listener = new LeapControl();
            listener.FrameReady += UpdateFrame;

            // Set up both modules with the various settings
            mouse = new PointerModule();
            keyboard = new KeyboardModule();

            // Get the screen size - could scale based on a switch statement from this, set some properties etc
            screenWidth = SystemParameters.PrimaryScreenWidth;
            screenHeight = SystemParameters.PrimaryScreenHeight;
        }