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
0 answers

Detecting iPad Mouse Right Click

I have a tableView in my app and want to show a contextual menu in the app ONLY when the user right-clicks it with a mouse on their iPad. The current tableView(_ tableView: UITableView, contextMenuConfigurationForRowAt indexPath: IndexPath, point:…
fphelp
  • 1,544
  • 1
  • 15
  • 34
1
vote
1 answer

cpp Simulating a smooth mouse drag

So for one of my projects I need to be able to hold a key down on my keyboard and for aslong as i hold that down it slowly moves my cursor down. I have no clue on how to perform this action. I know that SetCursorPos instantly moves the cursor but im…
1
vote
0 answers

Weird behavior for textarea in diagrams.net (draw.io) format panel

I'm facing a very weird (& blocking) issue using diagrams.net webapp. I'm trying to add some nodes in the Format Panel. I created a new tab in this panel & added in it some new inputs. There are text inputs, checkbox inputs & textarea. But the…
Totone
  • 162
  • 7
1
vote
1 answer

How to get mouse position outside OnGUI function?

I am working on a Unity tool and I want to create a custom GUI for it. In this simple script, I am checking if the mouse has hovered over a button and if so I change a GUI color. This is just a really basic example, but the same principles apply to…
1
vote
1 answer

Is there a way to round the mouse position in pygame?

I have tried making a simple system in my game where the player shoots where the mouse position is. But when i get the mouse position, i get a float tuple (I think that's what it's called) Is there any way to round the mouse position. This is the…
Kai
  • 115
  • 1
  • 2
  • 7
1
vote
0 answers

pydirectinput not moving mouse consistantly

I play this game that i would like to automate which requires little mouse movement as well as some keyboard inputs. While the code works(most of the time), sometimes it dosnt move the mouse all the…
Wiz Ninja
  • 19
  • 1
  • 5
1
vote
0 answers

drag, resize and rotate with mouse

I need to be able to resize, rotate, and move an image. I have managed to find the code below that works but I need to either have a rotation point on the image where I can use it to rotate it with mouse or have the slider to move with the image.…
1
vote
1 answer

Multiple input.event triggers on single button press caused by Mouse or Gamepad Joystick movement in Godot 3.2.3

I'm building a game in Godot and I am running into an issue where Input.is_action_pressed, Input.is_action_just_pressed, and Input.is_action_just_released are all triggering multiple times if the mouse or gamepad joysticks are moving while clicking…
HeroicNate
  • 63
  • 7
1
vote
2 answers

I'd like to draw pixels on a window with mouse input

I've done days of searching for a way to draw pixels to a window in java with mouse capture. I'm looking for some framework I can just plug in. It seems like it would be so simple... Any help will be greatly appreciated. (EDIT) Here is some…
motoku
  • 1,571
  • 1
  • 21
  • 49
1
vote
3 answers

python - fastest way to click mouse

I'm trying to make an auto click bot in python using pyautogui but this takes too much time (it runs in a loop, and xPos/yPos changes every time). What faster ways are there? Thanks for helping. pyautogui.PAUSE =…
Itay Tsuk
  • 83
  • 1
  • 7
1
vote
1 answer

What's the MacOS API to "capture" the mouse and keyboard, the way a VM or remote desktop program would do?

I'm looking for the Mac OS API that virtual machine or remote desktop type programs would use to "capture" the mouse and keyboard. That is to say, I want to write a GUI program where when the user clicks in my window, the normal mouse cursor…
Lawrence D'Anna
  • 2,998
  • 2
  • 22
  • 25
1
vote
1 answer

Detect if any mouse button is being pressed, and if so, which one?

Basically, I want to query if any mouse button is being pressed and if so, which one. The problem is that I don't use a (constantly focused) UI environment. It is meant to be able to run in the background while the OS is focused on another window. I…
Orbyfied
  • 94
  • 11
1
vote
2 answers

Python3 - How to detect mouse clicked on the image or not in pygame

I am making a game and i want to get image position which i have placed in center i tried image.get_rect() but it returned me the image rectangle size My Code as follows: import pygame import random # for random line color import pygame.mouse #…
Aditya
  • 1,132
  • 1
  • 9
  • 28
1
vote
0 answers

Android Java: Removing boundaries on the mouse

I have a special use case that requires a connected mouse to either wrap around the screen or to remove the boundaries on the mouse entirely. Pretty much what I need is to be able to see the physical change in mouse movement. The MotionEvent for…
1
vote
0 answers

Odd mouse behavior in only some apps and websites

TL;DR there seems to be some sort of tracking issue with my mouse in some applications - how can I fix this? So because of schooling from home, I had to download Autodesk Inventor to work on my drafting class projects. Immediately, I noticed this…