Questions tagged [trackball]

Trackball may refer to either the hardware used to move a mouse (specifically a ball embedded in the mouse which rolls as the mouse is moved) or to the three.js extension TrackballControls, used in web browsers to manipulate 3D objects. It should be used for questions about software specific to a trackball mouse, or questions about the TrackballControls extension.

In terms of computer hardware, a trackball is a physical ball used to capture input for a mouse. It is fairly rare to see a trackball on the bottom of a mouse anymore, but large and well-made ones are commonly used for high precision work or areas where durable hardware is required.

Questions with the tag, in the hardware sense, are usually related to writing software for a trackball, handling its inputs, and other technical questions. Note that actually asking about the trackball itself is probably off topic, since it's related to computer hardware.


In terms of computer software, TrackballControls is an extension to , which is itself used to control 3D objects in a web browser. It allows the camera to move ("track") around the object. It is fairly similar to OrbitControls.

Questions with the tag, in the software sense, are usually related to the use of the extension, including troubleshooting and proper use.

75 questions
10
votes
1 answer

Marble Trackman Scroll with holding Button only on Windows

I bought a Logitech Marble Trackman. I am used to hold one button and roll the ball to scroll under linux. Now I am working under Win8 and installed Logitech SetPoint. Now I have Universal Scroll and AutoScroll as options and both lock the scroll…
Markus Kreth
  • 748
  • 7
  • 26
7
votes
2 answers

OnKeyListener or OnKeydown not work if children views take the focus

I want to listen to a ScrollView to see if it is scrolling. I used OnTouchListener, it works well. But when I want to add compatibility to trackball using OnKeyListener or overriding the OnKeydown method, it can't work. Seems like the child buttons…
Fanny
  • 181
  • 1
  • 1
  • 6
5
votes
1 answer

Is it possible to detect if an Android phone has a trackball?

My application requires users to hold down the trackball in order to access an advanced menu. Not all phones have a trackball, however, so I need to remove this requirement for such phones. Is there a way to detect if the phone has a trackball?
Aaron C
  • 3,328
  • 1
  • 24
  • 22
3
votes
2 answers

OpenTK - How to rotate object by given angle

I was using tutorial on http://viewport3d.com/trackball.htm to program trackball. I have axis and angle computed but because I am just beginner to OpenTK and OpenGL, I don't know how to apply rotation to object. Any help please? code consist of…
ousko
  • 41
  • 1
  • 5
3
votes
2 answers

Tracking white ball in white background (Python/OpenCV)

i'm using OpenCV in Python 3 to detect a white/black ball on a white field and give it's exact (x,y,radius) and color. I use the function cv2.Canny() and cv2.findContours() to find it but the problem is cv2.Canny() dont's always detect the complete…
Aziz zeGeek
  • 107
  • 1
  • 2
  • 10
3
votes
1 answer

Change "Pulse notification light" / trackball light setting on Android (Nexus One only?)

On the Nexus One (at least in 2.1-update1, and I think in 2.1), there is a setting under Sound & Display: "Pulse notification light". This doesn't seem to be present on the "2.1 with Google APIs" emulator image. I've not yet checked any other…
Chris Boyle
  • 11,423
  • 7
  • 48
  • 63
3
votes
1 answer

WebView JavaScript links work on touch but not when using trackball

I have a simple WebView-based activity that follows the Hello, WebView example to enable JavaScript and overload shouldOverrideUrlLoading(). This Activity works great when the user touches links on the webpage. However, if the user uses the…
emmby
  • 99,783
  • 65
  • 191
  • 249
3
votes
5 answers

Is there is a demo C/C++ OpenCV program available that does simple ball tracking from a web camera?

Is there any open source or demo code available in C/C++ for OpenCV that does simple ball tracking? Basically I want to hold a red-colored ball in front of my web camera and I want OpenCV to detect its location. If I move the ball towards the…
user1068636
  • 1,871
  • 7
  • 33
  • 57
3
votes
1 answer

In Blackberry, setting Trackball Sensitivity has no effect?

I use the following code to set the sensitivity of the trackball public class Main extends UiApplication { public static void main(String[] args) { Main theApp = new Main(); theApp.enterEventDispatcher(); } public…
Ashraf Bashir
  • 9,686
  • 15
  • 57
  • 82
2
votes
1 answer

Android - Prevent UI elements from being selected by trackball

So I have a Player view with seekbar and play/pause/rewind, etc. buttons, which are ImageButtons that have pressed and normal states, but no selected states. Given that there are a number of android devices that have a trackball as alternate input…
josephus
  • 8,284
  • 1
  • 37
  • 57
2
votes
1 answer

How to use the rotateCamera function of Trackball Controls in ThreeJS?

I am looking for autorotate functionality like in Orbital controls. I found the rotateCamera() in Threejs Docs. Not sure how to use it or call it. Can anyone tell me how to use it?
2
votes
2 answers

C# .NET Trackball Support - But Not As a Mouse!

I want to use a trackball in my C# .NET application. But I do not want the trackball to be used by Windows as a mouse. When I connect both a trackball and a mouse the are both given control of the cursor. So there are essentially two questions: How…
2
votes
1 answer

Let the trackball glow per code in Android java

How can I let the Trackball glow? I know my HTC Hero can do this, If I get a new SMS he is also glowing, so how do I program this? Nothing found for this...
Liam Schnell
  • 474
  • 8
  • 25
2
votes
1 answer

which 'on' method is called when the trackball's 'Select' button is pressed?

which 'on' event is invoked when the user selects a ListView item by pressing the trackball button? i trapped onKeyDown, onTouchEvent, onTrackballEvent but it's none of those... thanks
inor
  • 2,781
  • 2
  • 32
  • 42
2
votes
1 answer

How to use TWEEN to animate the camera's position

function moveCameraTo(position, duration) { var tween = new TWEEN.Tween( camera.position ) .to( position, duration ) .easing(TWEEN.Easing.Linear.None) .onUpdate(function () { …
1
2 3 4 5