Пример #1
0
        static void Main(string[] args)
        {
            Console.CursorVisible = false;
            MouseHighlighter highlighter = new MouseHighlighter();

            highlighter.DeviceEnabled();
            Xbox360Controller x360 = new Xbox360Controller();

            x360.OnMouseMoveAction = () => highlighter.DrawHighlight();
            x360.OnEnableAction    = () => highlighter.DeviceEnabled();
            x360.OnDisableAction   = () => highlighter.DeviceDisable();
            while (true)
            {
                highlighter.DrawHighlight();
                x360.GetControllerInput();
                Thread.Sleep(10);
            }
        }