I want to write a program that changes the behavior of mouse when certain key is pressed. But I am not quite familiar with event mechanisms in linux. My guess is that I need to filter through the “event queue” looking for “key press” and “mouse press” events, and somehow modify the mouse event before passing it on or discard
Tag: mouseevent
Restarting an endless while loop upon a mouse event?
I am aiming a simple code which looks like this: My goal here is to restart the print sequence from “hey 1” immediately when left mouse is clicked. However, I am not able to achieve this without using “if” conditions before every sleep. a “goto” is not working for me across different functions too. Can anyone suggest an optimal solution