Exemplo n.º 1
0
        private void init()
        {
            ptrCallbackLoadingForm = loadingForm;
            ptrCallbackAppendText  = appendText;

            IKeyBoardEventsListener escuchadorTeclado = KeyBoardEventsListener.getInstance(this);

            hookTeclado = KeyBoardHook.getInstance(escuchadorTeclado);

            IMouseEventsListener escuchadorRaton = MouseEventListener.getInstance(this);

            hookRaton = MouseHook.getInstance(escuchadorRaton);

            onChildClose += new System.EventHandler(
                (object sender, EventArgs e) => { this.Close(); });
            listaProcesosForm = new ProcessListForm(onChildClose);
            //listaProcesosForm.Show();

            /*
             * foreach ( Process proc in Process.GetProcesses() ){
             *  try
             *  {
             *      using (ProcessModule curModule = proc.MainModule)
             *      {
             *          Trace.WriteLine(curModule.FileName);
             *      }
             *  }
             *  catch(Win32Exception e)
             *  {
             *      Trace.WriteLine("Ha ocurrido un error intentando leer un proceso. Error("+e.NativeErrorCode+") = "+e.Message);
             *  }
             *
             * }*/
            //this.overlayDebugging = new OverlayForm(null, IntPtr.Zero);
        }
Exemplo n.º 2
0
        public Form1()
        {
            _velocityHandler = new MouseVelocityHandler(
                new Vector2(0, 5),
                new Vector2(0, 1));

            InitializeComponent();
            MouseEventListener.StartMouseEventListener(OnMouseEvent);
        }
Exemplo n.º 3
0
    private static MouseEventListener GetListener()
    {
        if (m_listener == null)
        {
            var obj = new GameObject("MouseEventListener");
            obj.hideFlags |= HideFlags.HideAndDontSave | HideFlags.HideInInspector;

            m_listener = obj.AddComponent <MouseEventListener>();
        }
        return(m_listener);
    }
Exemplo n.º 4
0
        protected override void CreateInterface(object[] @params)
        {
            var mouseEventListener = MouseEventListener.Create();

            mouseEventListener.MouseDown += MouseEventListenerOnMouseDown;
            BeforeDestroy += _ => mouseEventListener.Detach();

            CreateCharacter();
            AnimateHead();
            AnimateHands();
            AnimateBody();

            base.CreateInterface(@params);
        }
Exemplo n.º 5
0
 public AppCoordinator(AppForm appForm)
 {
     _appForm = appForm;
     keyboardMouseSimulator   = new KeyboardMouseSimulator(this);
     cursorIconManager        = new CursorIconManager(this);
     xmlModifier              = new XMLModifier(this);
     hexListener              = new HexListener(this);
     userCommandsListener     = new UserCommandsListener(this);
     mouseEventListener       = new MouseEventListener(this);
     mouseCoordinator         = new MouseCoordinator();
     recordWindowErrorHandler = new RecordWindowErrorHandler(this);
     this.textToSpeech        = new TextToSpeechHelper();
     javaKiller = new JavaKiller();
     hexWindow  = new HexWindow(this);
 }
Exemplo n.º 6
0
 private void MobileInputArea_Load(object sender, EventArgs e)
 {
     mouseListener = new MouseEventListener(this);
 }