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); }
public Form1() { _velocityHandler = new MouseVelocityHandler( new Vector2(0, 5), new Vector2(0, 1)); InitializeComponent(); MouseEventListener.StartMouseEventListener(OnMouseEvent); }
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); }
protected override void CreateInterface(object[] @params) { var mouseEventListener = MouseEventListener.Create(); mouseEventListener.MouseDown += MouseEventListenerOnMouseDown; BeforeDestroy += _ => mouseEventListener.Detach(); CreateCharacter(); AnimateHead(); AnimateHands(); AnimateBody(); base.CreateInterface(@params); }
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); }
private void MobileInputArea_Load(object sender, EventArgs e) { mouseListener = new MouseEventListener(this); }