glutTabletButtonFunc(3GLUT) GLUT glutTabletButtonFunc(3GLUT)NAME
glutTabletButtonFunc - sets the special keyboard callback for the current window.
SYNTAX
void glutTabletButtonFunc(void (*func)(int button, int state,
int x, int y));
ARGUMENTS
func The new tablet button callback function.
DESCRIPTION
glutTabletButtonFunc sets the tablet button callback for the current window. The tablet button callback for a window is called when the
window has tablet input focus (normally, when the mouse is in the window) and the user generates tablet button presses. The button parame-
ter will be the button number (starting at one). The number of available tablet buttons can be determined with glutDe-
viceGet(GLUT_NUM_TABLET_BUTTONS). The state is either GLUT_UP or GLUT_DOWN indicating whether the callback was due to a release or press
respectively. The x and y callback parameters indicate the window relative coordinates when the tablet button state changed.
Registering a tablet button callback when a tablet device is not available is ineffectual and not an error. In this case, no tablet button
callbacks will be generated.
Passing NULL to glutTabletButtonFunc disables the generation of tablet button callbacks. When a new window is created, no tablet button
callback is initially registered.
SEE ALSO
glutTabletMotionFunc, glutDeviceGet, glutMotionFunc, glutSpaceballMotionFunc
AUTHOR
Mark J. Kilgard (mjk@nvidia.com)
GLUT 3.7 glutTabletButtonFunc(3GLUT)
Check Out this Related 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)
Hi,
I'm new to the boards and don't know all that much about unix either.
I do have quite a specific question though and i hope someone can help me with it...
i'm going crazy...i've been trying to set up a wacom tablet on my unix box. i've don't it before but it was taken away and the os... (3 Replies)
Discussion started by: Salwey
3 Replies
2. Post Here to Contact Site Administrators and Moderators
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)
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)
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)
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)
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)
Let's find out about users of Android. I'm becoming a big Android follower. You?
After a lot of research, I am thinking to by the Samsung Galaxy S as soon as it updates to Android 2.2.
I'm also closely following the release of the Samsung Galaxy Tab! (14 Replies)
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)
Does anyone have a Thunderbolt? Or even an opinion on them? I need a new cell phone for work. My manager says I can get a Thunderbolt, but I must decide by Monday morning. The other options are iPhone and some Droid model. (18 Replies)
hi
sorry for grammar mistakes but i am writting these fro tablet and am not realy used to ot so well yet....
i am in the middle of doing work here and hope some1 ca answear my question asap please :-)
How to calculate the amount of internal fragmentation using script.
cd directory ...... (6 Replies)
Hi, guys, I was using an online utility to check wheather or not an email existed, and they gave me three tries. I thought clearing temp and cookies would work, but it looks like they grabbed a hold of my IP. :mad: Now, I'd like to make a shell script that changes my IP. Not bad...yet. I'm using... (7 Replies)
Hey all,
So, I want to build a tablet that will run a standard 32-bit version of Linux.
The reason for this is I need to run my application on a very bright screen to use outdoors. I don't want to spend the time porting all of the code to use on an ARM tablet. The application works flawlessly... (2 Replies)
Hi ,
i want to buy a tablet with LINUX DEBIAN.
Sparky is possible too.
Have heared about Ubuntu Touch and a tablet with a real keyboard to switch from touch to normal keyboard.
Does anyone know something ?
WBR
SM (3 Replies)