flat assembler
Message board for the users of flat assembler.

Index > High Level Languages > Reading keypresses with C

Author
Thread Post new topic Reply to topic
Nyrre



Joined: 26 Feb 2006
Posts: 13
Nyrre 23 May 2006, 15:11
Hey, I've just wondered that is it possible to read keypresses without using any game-libraries (like SDL or so)? Just with standard libraries or with raw C.
Post 23 May 2006, 15:11
View user's profile Send private message Reply with quote
Vasilev Vjacheslav



Joined: 11 Aug 2004
Posts: 392
Vasilev Vjacheslav 23 May 2006, 19:09
GetAsyncKeyState
Post 23 May 2006, 19:09
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo 23 May 2006, 21:29
Quote:

Title: libkb -- advanced and portable low-level keyboard library
Version: 1.01
Entered-date: 03JUN98
Description: libkb is a free, advanced and portable low-level keyboard
library for Linux and MSDOS. Allows access to ALL keys and
ALL key combinations. Also handles Pause key and Control-Break.
Ideal for games and all applications that want
total control over the keyboard.

Practical kbhit()/getkey() like interface for textual input.
Intelligent signal handling and emergency-exit feature
to achieve a maximum of robustness.
Supports virtual terminal switching under Linux.

Easy to use. Written entirely in C without assembler code.
Comes with full source, example programs and documentation.
Works with Linux gcc/Borland C/Watcom C/djgpp.


libkb-1.01.tar.gz
Post 23 May 2006, 21:29
View user's profile Send private message Visit poster's website Reply with quote
peter



Joined: 09 May 2006
Posts: 63
peter 24 May 2006, 03:14
May be, getch() will help. Do you need to read only alphanumeric keys, or also functional keys?
Post 24 May 2006, 03:14
View user's profile Send private message Visit poster's website Reply with quote
Nyrre



Joined: 26 Feb 2006
Posts: 13
Nyrre 24 May 2006, 11:31
Functional keys aren't nessesary.
Post 24 May 2006, 11:31
View user's profile Send private message Reply with quote
flaith



Joined: 07 Feb 2005
Posts: 122
Location: $300:20 58 FC 60 N 300G => Vietnam
flaith 24 May 2006, 17:44
peter wrote:
May be, getch() will help. Do you need to read only alphanumeric keys, or also functional keys?


and getchar() under GNU/Linux !

_________________
Je suis sur de 'rien', mais je ne suis pas sur du 'tout'.
Post 24 May 2006, 17:44
View user's profile Send private message Visit poster's website Reply with quote
masonswanson



Joined: 17 Aug 2010
Posts: 51
masonswanson 01 Nov 2010, 06:45
and getchar under mingw-gcc, and cygwin-gcc
Post 01 Nov 2010, 06:45
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.