Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

glutspaceballbuttonfunc(3glut) [redhat man page]

glutSpaceballButtonFunc(3GLUT)					       GLUT					    glutSpaceballButtonFunc(3GLUT)

NAME
glutSpaceballButtonFunc - sets the Spaceball button callback for the current window. SYNTAX
void glutSpaceballButtonFunc(void (*func)(int button, int state)); ARGUMENTS
func The new spaceball button callback function. DESCRIPTION
glutSpaceballButtonFunc sets the Spaceball button callback for the current window. The Spaceball button callback for a window is called when the window has Spaceball input focus (normally, when the mouse is in the window) and the user generates Spaceball button presses. The button parameter will be the button number (starting at one). The number of available Spaceball buttons can be determined with glutDe- viceGet(GLUT_NUM_SPACEBALL_BUTTONS). The state is either GLUT_UP or GLUT_DOWN indicating whether the callback was due to a release or press respectively. Registering a Spaceball button callback when a Spaceball device is not available is ineffectual and not an error. In this case, no Space- ball button callbacks will be generated. Passing NULL to glutSpaceballButtonFunc disables the generation of Spaceball button callbacks. When a new window is created, no Spaceball button callback is initially registered. SEE ALSO
glutSpaceballMotionFunc, glutSpaceballRotateFunc, glutMouseFunc, glutButtonBoxFunc, glutTabletButtonFunc, glutJoystickFunc, glutDeviceGet AUTHOR
Mark J. Kilgard (mjk@nvidia.com) GLUT
3.7 glutSpaceballButtonFunc(3GLUT)

Check Out this Related Man Page

glutSpaceballButtonFunc(3GLUT)					       GLUT					    glutSpaceballButtonFunc(3GLUT)

NAME
glutSpaceballButtonFunc - sets the Spaceball button callback for the current window. SYNTAX
#include <GLUT/glut.h> void glutSpaceballButtonFunc(void (*func)(int button, int state)); ARGUMENTS
func The new spaceball button callback function. DESCRIPTION
glutSpaceballButtonFunc sets the Spaceball button callback for the current window. The Spaceball button callback for a window is called when the window has Spaceball input focus (normally, when the mouse is in the window) and the user generates Spaceball button presses. The button parameter will be the button number (starting at one). The number of available Spaceball buttons can be determined with glutDe- viceGet(GLUT_NUM_SPACEBALL_BUTTONS). The state is either GLUT_UP or GLUT_DOWN indicating whether the callback was due to a release or press respectively. Registering a Spaceball button callback when a Spaceball device is not available is ineffectual and not an error. In this case, no Space- ball button callbacks will be generated. Passing NULL to glutSpaceballButtonFunc disables the generation of Spaceball button callbacks. When a new window is created, no Spaceball button callback is initially registered. SEE ALSO
glutSpaceballMotionFunc, glutSpaceballRotateFunc, glutMouseFunc, glutButtonBoxFunc, glutTabletButtonFunc, glutJoystickFunc, glutDeviceGet AUTHOR
Mark J. Kilgard (mjk@nvidia.com) GLUT
3.7 glutSpaceballButtonFunc(3GLUT)
Man Page

14 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Make the SEARCH button REALLY BIG

Neo, Maybe it would be best to make the search button/option more visible? I know when I came here the first time, I didn't really notice that option. Just an idea. It appears that some people either don't see it.. or the obvious, don't want to use it, but I'd suggest that it's more of the... (8 Replies)
Discussion started by: ober5861
8 Replies

2. Post Here to Contact Site Administrators and Moderators

No "sign in" button

I am just curious, why isn't there a "sign in" button on the main page? (1 Reply)
Discussion started by: milhan
1 Replies

3. SCO

Logon Problem

Hellow, I am using SCO Unixware version 7.1.1 on a machine, when I start this machine, after logon, one message window appears " Message ! with Ok button ", when I click on Ok button it again goes to logon windows. Can somebody help me regarding this. Thanks in advance... (0 Replies)
Discussion started by: tayyabq8
0 Replies

4. UNIX for Dummies Questions & Answers

telnet is not a registered protocol

I'm using firefox and I access a site which established a VPN connection to another site. There is a button which is supposed to log me into another system. When I click the button, I get an error window popup saying: telnet is not a registered protocol I do I register telnet as a protocol?... (1 Reply)
Discussion started by: lyonsd
1 Replies

5. UNIX for Dummies Questions & Answers

Script for using the Back button and the Close button

Here's a question I have for anyone that might be able to help me: I can write a html script that will allow the user to return to the previous page using the back button, and I can write a script that will allow the user to return to the previous page using the close button, but...is there a... (1 Reply)
Discussion started by: mdgibson
1 Replies

6. UNIX for Dummies Questions & Answers

problem with execvp

i am having an application that contains a push button. On the click of this push button i want to call a executable file using execvp function block fo2 push button { char *args; args=NULL; execvp("/home2/xyz/app1.exe",args) } but after compilation when i press this button the... (3 Replies)
Discussion started by: kunu
3 Replies

7. UNIX for Dummies Questions & Answers

Thinkpad 390X Fn

I have in my possession an IBM Thinkpad 390X. I havebeen using word and lately a function delaing with the Fn button have created problems. It acts as if Fn is depressed though it is not. When I depress Fn I can type normally, the keys it affects are J,K,L,:,U,I,O,P,M,<,>,? Does anyone know how to... (0 Replies)
Discussion started by: Word
0 Replies

8. UNIX and Linux Applications

graphical user acessible program

hi evaryone i am new to linux and i need help from u people ,i have to create a user accesible window in which i have to provide a button on submitting the button it has to run my c program,can anyone help me out how to do this . thanks (2 Replies)
Discussion started by: srilakshmi
2 Replies

9. UNIX for Dummies Questions & Answers

to know about press button command

Please help me with this ........... Suppose i have made a database of 25 people and want to make the user select any number of people till he wishes and then press a button to stop the process (of selecting) what coding should be followed by me ...........:confused::confused: (1 Reply)
Discussion started by: doctor001
1 Replies

10. Programming

Xlib simple program.

I don't know if it is right to ask you this. Can someone help me write a simple Xlib program,with button on it,and all that button do is switch 2 messages. I have tried and tried,but never get past Hello World. Can someone help me please? ---------- Post updated at 10:17 PM ---------- Previous... (2 Replies)
Discussion started by: megane16v
2 Replies

11. Shell Programming and Scripting

Pressing "Enter/Space bar" using Net::TELNET? in Perl

I'm trying to learn how to get my script to execute the enter button when it telnets into a router and the router displays output but you need to press the space bar or enter button to continue displaying my output of the router. How is this done? (0 Replies)
Discussion started by: xmaverick
0 Replies

12. Programming

Fork thread, Assertion failed. X11.

Hi all. I wrote a program with the Motif Widget Toolkit. It has a button and a scrollbar. When the user hits the button the callback creates a new fork() thread. The new thread sleeps for a while and then changes the position of the scrollbar. It does this in an endless loop. I need the... (2 Replies)
Discussion started by: mghis
2 Replies

13. Solaris

This must be the dumbest question ever posted -T5140 power button

I have a T5140 and cannot find the power switch -is there an on/off button? Good grief ! Thank you in advance. joe (3 Replies)
Discussion started by: joboy
3 Replies

14. What is on Your Mind?

Thanks Button Coming to Mobile Soon

FYI... I have the thumbs-up icon and the tooltip for thanking members for their posts displaying in mobile; but I have to change the legacy $.ajax() code in mobile before the button works; but it will be working sooner than later: https://www.unix.com/members/1-albums214-picture1022.jpeg I... (1 Reply)
Discussion started by: Neo
1 Replies