Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

exkeys(3alleg4) [debian man page]

exkeys(3alleg4) 						  Allegro manual						   exkeys(3alleg4)

NAME
exkeys - How to get input from the keyboard in different ways. Allegro game programming library. SYNOPSIS
#include <allegro.h> Example exkeys DESCRIPTION
This program demonstrates how to access the keyboard. The first part shows the basic use of readkey(). The second part shows how to extract the ASCII value. Next come the scan codes. The fourth test detects modifier keys like alt or shift. The fifth test requires some focus to be passed. The final step shows how to use the global key array to read simultaneous key presses. The last method to detect key presses are keyboard callbacks. This is demonstrated by installing a keyboard callback, which marks all pressed keys by drawing to a grid. SEE ALSO
END_OF_FUNCTION(3alleg4), END_OF_MAIN(3alleg4), LOCK_FUNCTION(3alleg4), SCREEN_H(3alleg4), SCREEN_W(3alleg4), acquire_screen(3alleg4), allegro_error(3alleg4), allegro_init(3alleg4), allegro_message(3alleg4), blit(3alleg4), clear_keybuf(3alleg4), clear_to_color(3alleg4), desktop_palette(3alleg4), font(3alleg4), install_keyboard(3alleg4), install_timer(3alleg4), key(3alleg4), key_shifts(3alleg4), key- board_lowlevel_callback(3alleg4), keypressed(3alleg4), makecol(3alleg4), readkey(3alleg4), rectfill(3alleg4), release_screen(3alleg4), rest(3alleg4), scancode_to_name(3alleg4), screen(3alleg4), set_gfx_mode(3alleg4), set_palette(3alleg4), textprintf_centre_ex(3alleg4), textprintf_ex(3alleg4), ureadkey(3alleg4), usprintf(3alleg4), ustrzncpy(3alleg4) Allegro version 4.4.2 exkeys(3alleg4)

Check Out this Related Man Page

exzbuf(3alleg4) 						  Allegro manual						   exzbuf(3alleg4)

NAME
exzbuf - Z-buffered polygons demo. Allegro game programming library. SYNOPSIS
#include <allegro.h> Example exzbuf DESCRIPTION
This program demonstrates how to use Z-buffered polygons and floating point 3D math routines. It also provides a simple way to compute fps (frames per second) using a timer. After selecting a screen resolution through the standard GUI dialog, the example shows two 3D cubes rotating and intersecting each other. Rather than having full polygons incorrectly overlap other polygons due to per-polygon sorting, each pixel is drawn at the correct depth. SEE ALSO
BITMAP(3alleg4), END_OF_FUNCTION(3alleg4), END_OF_MAIN(3alleg4), LOCK_FUNCTION(3alleg4), LOCK_VARIABLE(3alleg4), MATRIX_f(3alleg4), PAL- ETTE(3alleg4), POLYTYPE_GCOL(3alleg4), SCREEN_H(3alleg4), SCREEN_W(3alleg4), V3D_f(3alleg4), ZBUFFER(3alleg4), allegro_error(3alleg4), allegro_exit(3alleg4), allegro_init(3alleg4), allegro_message(3alleg4), apply_matrix_f(3alleg4), bitmap_color_depth(3alleg4), blit(3alleg4), clear_bitmap(3alleg4), clear_zbuffer(3alleg4), create_bitmap(3alleg4), create_zbuffer(3alleg4), desktop_palette(3alleg4), destroy_bitmap(3alleg4), destroy_zbuffer(3alleg4), font(3alleg4), get_transformation_matrix_f(3alleg4), gfx_mode_select_ex(3alleg4), install_int(3alleg4), install_keyboard(3alleg4), install_mouse(3alleg4), install_timer(3alleg4), keypressed(3alleg4), pal- ette_color(3alleg4), persp_project_f(3alleg4), polygon_z_normal_f(3alleg4), quad3d_f(3alleg4), readkey(3alleg4), screen(3alleg4), set_color_depth(3alleg4), set_gfx_mode(3alleg4), set_palette(3alleg4), set_palette_range(3alleg4), set_projection_viewport(3alleg4), set_zbuffer(3alleg4), textprintf_ex(3alleg4), vsync(3alleg4) Allegro version 4.4.2 exzbuf(3alleg4)
Man Page

6 More Discussions You Might Find Interesting

1. Programming

Executable file in C

Hi all, I have modified a C file and executed it. While executing the executable file for that C file, it shows à is cannot be printed. I have given isprint(à) to test it. When I copy the old executable file and execute it it shows it can be printed. Then I retain the C code back and executed it... (1 Reply)
Discussion started by: sivakumar.rj
1 Replies

2. Shell Programming and Scripting

screenrc question

I've set up a .screenrc on some of my servers. When I use this the vi editor doesn't work the same way and some of the keys on my keyboard don't work. Like the Backspace and Delete key. Can someone explain why this happens and maybe how to fix it? I'm using RedHat and Fedora if that makes a... (1 Reply)
Discussion started by: janel10
1 Replies

3. Programming

get keypress c++Qt

Hi i need to get the key pressed from the keyboard without focus on the application. i work under CentOS 5.5 with QtC++ 4.7 and Python Script (0 Replies)
Discussion started by: HanyM.Magdy
0 Replies

4. Programming

How do you detect keystrokes in canonical mode?

I'm writing a command shell, and I want to be able to detect when the user presses an arrow key (otherwise it just prints [[A, [[B, etc.). I know it's relatively easy (although somewhat more time-consuming) to detect keystrokes in noncanonical mode, but I've noticed that the bash shell detects... (4 Replies)
Discussion started by: Ultrix
4 Replies

5. Shell Programming and Scripting

Input keyboard keys upon program launch

Hey guys, first post! I want to write a script that will wait 1 second and then input the keys CTRL+ALT+J to the application i just opened. The program is dosbox, and thay key combination starts video recording :) I have no idea how to program this, can anyone help please? thanks in advance! (2 Replies)
Discussion started by: brunobliss
2 Replies

6. Programming

Simple capturing of keyboard input without interruption

I would like to make a function or command that checks for keyboard input without interrupting the program and exits the program when a key is pressed (perhaps the 'q' key). The program below monitors and prints/executes commands upon a change in primary (mouse selection) or clipboard buffer. If... (4 Replies)
Discussion started by: bedtime
4 Replies