Questions tagged [mouse]

A mouse is a pointing device that functions by detecting two-dimensional motion relative to its supporting surface.

Wikipedia

Wikipedia defines mouse as follows:

In computing, a mouse is a pointing device that functions by detecting two-dimensional motion relative to its supporting surface. Physically, a mouse consists of an object held under one of the user's hands, with one or more buttons.

http://en.wikipedia.org/wiki/Mouse_%28computing%29

4371 questions
1
vote
2 answers

Xbindkeys / ubuntu assign copy paste to mouse buttons

in Ubuntu 20.04 LTS i try to customize my logitech mx master 3 mouse buttons with xbindkeys I edit the settings in ~/.xbindkeysrc something like this works fine for bottons 8 and 9 : # Mouse Button #8 "nautilus" b:8 # Mouse Button…
1
vote
1 answer

Automating iTunes mouse click in Objective-C

I am trying to automate a left mouse click in iTunes from Objective-C. I am doing the following. first I am listening to iTunes events [[NSDistributedNotificationCenter defaultCenter] addObserver:self …
Peyman
  • 1,058
  • 1
  • 14
  • 27
1
vote
1 answer

Python: show image until mouse button is clicked

I'm writing a code using Python 3.8 where the user is asked to press a button as soon as an image appears. The image is then replaced with a white screen for a random interval of 1 to 4 seconds, until a new image appears. I used cv2.waitKey() until…
nouk
  • 13
  • 3
1
vote
1 answer

Pygame sprite not turning accordingly to mouse

I've been trying and trying, but basically I wanna make a tank game which has a tank that can turn itself by the mouse to fire bullets; when you turn your mouse to a direction, the sprite will follow exactly. the problem is, I can't turn the tank…
BetterNot
  • 119
  • 7
1
vote
2 answers

Score Counter Loop on Mouse Click in PyGame

I am writing a test game with PyGame and have a turn/phase based system (Like in Yu-Gi-Oh!) however the problem I am having is when I want to increase the Turn Counter (on the Draw Phases) it keeps incrementing it indefinitely until I press the…
1
vote
3 answers

How to use PyAutoGUI to detect RGB values

I'm trying to build a small bot that clicks only certain colours. I believe pyautogui.displayMousePosition() should display the position of my mouse as well as the RGB values of the pixel the mouse is on. Instead, I'm only seeing the positional…
prohibited509
  • 43
  • 1
  • 1
  • 5
1
vote
1 answer

Double mouse cursor with simple matter.js

I wanted to create an idle game with matter.js. I can perfectly capture mouse events, and then started noticing that there is a double cursor after I single click the portal in the center. Even after taking out all the code related to capturing…
tomdemuyt
  • 4,572
  • 2
  • 31
  • 60
1
vote
0 answers

.Net Disable a form or disable mouse click until it is completely loaded

I know this has been asked but I am still confused as how to implement it. The user selects an option by double-clicking on a grid or by pressing an Accept button. Inevitably, they triple-click or otherwise click on the screen while the new form is…
Rico
  • 141
  • 1
  • 8
1
vote
1 answer

Track Mouse Movement while confined

I need to be able to track the mouse and display it on a pygame window even though the mouse is confined in a location such as 200, 200. My code is this import pygame import time from pygame.locals import * import…
Anik Patel
  • 143
  • 4
1
vote
1 answer

pynput.mouse.Listener specific suppress (Python)

I have this code that listens to mouse events and uses suppress = True to prevent the events from being passed to the rest of the system. (Locking the mouse in position and blocking all inputs). def on_move(x, y): print(x, y) def on_click(x,…
lordcommander
  • 320
  • 3
  • 7
1
vote
1 answer

Correct way to send X11 mouse events

I am trying to write an X11 input driver that can use the touchscreen on my Android phone to move and click the mouse. I've gotten moving the mouse alright, but I'm having trouble getting the clicks recognized correctly by the applications. My…
Zhehao Mao
  • 1,789
  • 13
  • 13
1
vote
0 answers

pynput via ssh want to monitor mouse movements

Raspberry Pi4, Rasbian Attached KB, Mouse, no monitor, ssh'ing to device over Wifi vi putty I'm brand new to Python, so struggling with some basics here. And I think I have some advanced (to me) things with X muddying the waters. If I could get…
shorton
  • 323
  • 3
  • 13