Esempio 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;
        }
Esempio 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;
        }