Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mouse triggers question
#2
Use TMFlags.ShareEvent. Without it the trigger does not allow the OS to set the logical "pressed" state, therefore mouse.waitForNoButtonsPressed does not work. OS does not provide a way to get the physical "pressed" state. But with the flag the mouse event is not blocked.
 
Code:
Copy      Help
        Triggers.Mouse[TMClick.Left, "Ctrl", TMFlags.ShareEvent] = o => {
            print.it(mouse.isPressed(MButtons.Left));
            mouse.waitForNoButtonsPressed();
            print.it("mouse button released");
        };


Messages In This Thread
Mouse triggers question - by cuitino - 08-16-2024, 03:23 AM
RE: Mouse triggers question - by Gintaras - 08-16-2024, 04:15 AM
RE: Mouse triggers question - by Gintaras - 08-16-2024, 04:44 AM
RE: Mouse triggers question - by cuitino - 08-16-2024, 11:03 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)