Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

calibrate_joystick(3alleg4) [debian man page]

calibrate_joystick(3alleg4)					  Allegro manual				       calibrate_joystick(3alleg4)

NAME
calibrate_joystick - Calibrates the specified joystick. Allegro game programming library. SYNOPSIS
#include <allegro.h> int calibrate_joystick(int n); DESCRIPTION
Most joysticks need to be calibrated before they can provide full analogue input. This function performs the next operation in the calibra- tion series for the specified stick, assuming that the joystick has been positioned in the manner described by a previous call to cali- brate_joystick_name(), returning zero on success. For example, a simple routine to fully calibrate all the joysticks might look like: int i; for (i=0; i<;num_joysticks; i++) { while (joy[i].flags & JOYFLAG_CALIBRATE) { char *msg = calibrate_joystick_name(i); textprintf_ex(..., "%s, and press a key ", msg); readkey(); if (calibrate_joystick(i) != 0) { textprintf_ex(..., "oops! "); readkey(); exit(1); } } } RETURN VALUE
Returns zero on success, non-zero if the calibration could not be performed successfully. SEE ALSO
install_joystick(3alleg4), calibrate_joystick_name(3alleg4), joy(3alleg4), num_joysticks(3alleg4), exjoy(3alleg4) Allegro version 4.4.2 calibrate_joystick(3alleg4)

Check Out this Related Man Page

calibrate_joystick(3alleg4)					  Allegro manual				       calibrate_joystick(3alleg4)

NAME
calibrate_joystick - Calibrates the specified joystick. Allegro game programming library. SYNOPSIS
#include <allegro.h> int calibrate_joystick(int n); DESCRIPTION
Most joysticks need to be calibrated before they can provide full analogue input. This function performs the next operation in the calibra- tion series for the specified stick, assuming that the joystick has been positioned in the manner described by a previous call to cali- brate_joystick_name(), returning zero on success. For example, a simple routine to fully calibrate all the joysticks might look like: int i; for (i=0; i<;num_joysticks; i++) { while (joy[i].flags & JOYFLAG_CALIBRATE) { char *msg = calibrate_joystick_name(i); textprintf_ex(..., "%s, and press a key ", msg); readkey(); if (calibrate_joystick(i) != 0) { textprintf_ex(..., "oops! "); readkey(); exit(1); } } } RETURN VALUE
Returns zero on success, non-zero if the calibration could not be performed successfully. SEE ALSO
install_joystick(3alleg4), calibrate_joystick_name(3alleg4), joy(3alleg4), num_joysticks(3alleg4), exjoy(3alleg4) Allegro version 4.4.2 calibrate_joystick(3alleg4)
Man Page

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

file creation

hi guys Kindly see the below script #!/bin/bash if then # check to see if file notrouter exits or not if ! ls -l notrouter /root/joy/ >/dev/null then touch /root/joy/notrouter else echo "Entries already exist" fi else echo "Entries does not exist" fi here... (1 Reply)
Discussion started by: whizkidash
1 Replies

2. Shell Programming and Scripting

parsing output of system()

Hi, From the above output of df command I need to parse only 43G (available space) and display it. root@localhost:> df -h /vol1/joy Filesystem Size Used Avail Capacity Mounted on /vol1/joy 180G 137G 43G 76% ... (3 Replies)
Discussion started by: cjjoy
3 Replies

3. Programming

Problem about Kernel oops

hello,everyone,I'm reading LDD3.Topics about oops,it said the code bellow would cause a fault condition because "this method copies a string to a local variable,unfortunately,the string is longer than the destination array".Well,hard to understand....Is that right?I thought the fault should be... (1 Reply)
Discussion started by: homeboy
1 Replies