Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

keypressed(3alleg4) [suse man page]

keypressed(3alleg4)                                               Allegro manual                                               keypressed(3alleg4)

NAME
keypressed - Tells if there are keypresses waiting in the input buffer. Allegro game programming library. SYNOPSIS
#include <allegro.h> int keypressed(); DESCRIPTION
Returns TRUE if there are keypresses waiting in the input buffer. You can use this to see if the next call to readkey() is going to block or to simply wait for the user to press a key while you still update the screen possibly drawing some animation. Example: while (!keypressed()) { /* Show cool animated logo. */ } /* So he skipped our title screen. */ SEE ALSO
install_keyboard(3alleg4), readkey(3alleg4), ureadkey(3alleg4), clear_keybuf(3alleg4), simulate_keypress(3alleg4), simulate_ukey- press(3alleg4) Allegro version 4.4.2 keypressed(3alleg4)

Check Out this Related Man Page

exrotscl(3alleg4)                                                 Allegro manual                                                 exrotscl(3alleg4)

NAME
exrotscl - Demonstrates rotate_scaled_sprite functions. Allegro game programming library. SYNOPSIS
#include <allegro.h> Example exrotscl DESCRIPTION
This example demonstrates rotate_scaled_sprite functions. SEE ALSO
BITMAP(3alleg4), END_OF_MAIN(3alleg4), SCREEN_H(3alleg4), SCREEN_W(3alleg4), acquire_screen(3alleg4), allegro_init(3alleg4), allegro_mes- sage(3alleg4), clear_to_color(3alleg4), create_bitmap(3alleg4), destroy_bitmap(3alleg4), draw_trans_sprite(3alleg4), fixed(3alleg4), font(3alleg4), ftofix(3alleg4), install_keyboard(3alleg4), key(3alleg4), keypressed(3alleg4), load_bitmap(3alleg4), makeacol(3alleg4), makecol(3alleg4), readkey(3alleg4), release_screen(3alleg4), rest(3alleg4), rotate_scaled_sprite(3alleg4), rotate_scaled_sprite_lit(3alleg4), rotate_scaled_sprite_trans(3alleg4), screen(3alleg4), set_alpha_blender(3alleg4), set_color_conver- sion(3alleg4), set_color_depth(3alleg4), set_gfx_mode(3alleg4), set_trans_blender(3alleg4), textout_centre_ex(3alleg4) Allegro version 4.4.2 exrotscl(3alleg4)
Man Page

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Capture an empty key press...

I am trying to test input from the user, if they press enter with out an Y or N. I have the characheter thing sorted but when it comes to a blank or empty key press I am having trouble. if ; then clear echo "Sorry, that is an invalid choice!" exit fi I am using a KSH script in... (3 Replies)
Discussion started by: jagannatha
3 Replies

2. UNIX for Dummies Questions & Answers

spacing question

hi , i have follwing strings in a text file hello i am cool hey i am cool arrey i am cool in all the above 3 i wanna retrieve cool.......for this i used split(/ /) but it takes into consideration only one space.......is there any regular expression to do the trcik? ... (7 Replies)
Discussion started by: vivekshankar
7 Replies

3. Programming

How can I do that ?

I have a problem. I have a string , let's say a="!_30". I have another string to , let's say b="cool++". I wanna replace string a value with cool. I wanna a="cool" , without those 2 pluses. How can I do it , with some C string function. Not vith array's or pointer's ? I mean , I want... (6 Replies)
Discussion started by: !_30
6 Replies

4. Programming

Detecting a key combination

Could anybody tell me how I can detect a particular key combination and perform a particular task on that event. e.g. if I press Ctrl + L on the shell then it clears the screen. Please tell me how it can be performed on my shell. And how the Arrow Keys can be detected. I tried but pressing a key... (11 Replies)
Discussion started by: mobile01
11 Replies

5. Programming

Does anybody know how to simulate press Fn+Scroll Lk in Linux c

Does anybody know how to simulate press Fn+Scroll Lk in Linux c? Thanks in advance! (10 Replies)
Discussion started by: liuyan03
10 Replies

6. Shell Programming and Scripting

Indentation help

Hi I have coded 300 line script.Its not indented properly.i am not good at indentation. I would appreciate your help on this. i want to use a 4 space indentataion.Hence if i "set tabstop=4" and use tabs for coding and if some one else open this script in their system it looks unindented since... (11 Replies)
Discussion started by: pinnacle
11 Replies

7. UNIX for Dummies Questions & Answers

How to slow down text output?

I found some ascii art that is animated (vt100) and would like to view it properly. However, when I try using 'cat', the file is done almost the instant I press enter. How can I view the file in a slower fashion (similar to the days of 2400baud, for example)? (2 Replies)
Discussion started by: Fangs McWolf
2 Replies

8. Shell Programming and Scripting

Bash KeyPress (or Read Single Character)

Hi, I'm sorry if this has already been posted somewhere but I can't seem to find it on the forums (or anywhere on google :( ) I am writing a script where a user must enter a single character to perform an action. For example, Press Q to Quit or R to Refresh Basically I am stuggling... (5 Replies)
Discussion started by: Ste_Moore01
5 Replies

9. Shell Programming and Scripting

Monitor keypresses without focus?

Hi all, I'm new to Linux, been at it a couple weeks. I have written a script that basically acts as a watchdog to ping a server on a set interval, make sure chromium-browser is running, and a couple other things (it displays data via web browser). I'd like to make it stop the script when I hit... (4 Replies)
Discussion started by: strategery
4 Replies

10. Shell Programming and Scripting

Controlling user input

I'm trying to use a bash script for a psych experiment that involves listening to sound files and responding. If I have something like the code below, how can I make sure that a key press is assigned to RESPONSE only after the second echo statement? for i in 1 2 3; do echo "Ready?" sleep 2 ... (10 Replies)
Discussion started by: darwin_886
10 Replies