如何处理ArrowKeys [英] How to handle the ArrowKeys
问题描述
我是如何处理箭头键是否被按下。
我曾使用w,s,a,d键来执行该功能。我想在ArrowKeys的帮助下制作
how can i handle the arrowkeys whether they are pressed or not.
i had used the w,s,a,d keys to do that function. I want to make that
with the help of ArrowKeys
推荐答案
" sravan_reddy001"写道:
"sravan_reddy001" writes:
我如何处理箭头键是否被按下。
i使用了w,s, a,d键执行该功能。我希望在ArrowKeys的帮助下赚取
how can i handle the arrowkeys whether they are pressed or not.
i had used the w,s,a,d keys to do that function. I want to make that
with the help of ArrowKeys
使用箭头键取决于你的操作系统和你的编译器,这个组
仅为通用C.查找扫描代码然后将您的问题发布到
更合适的新闻组。
Use of the arrow keys is dependant on your OS and your compiler, this group
is generic C only. Look up "scan code" and then post your question to a
more appropriate newsgroup.
" sravan_reddy001" < sr ************* @ gmail.comwrote in message
news:11 ***************** *****@j4g2000prf.googlegro ups.com ...
"sravan_reddy001" <sr*************@gmail.comwrote in message
news:11**********************@j4g2000prf.googlegro ups.com...
无论是否按下箭头键,我如何处理箭头键。
i使用w,s,a,d键来执行该功能。我希望在ArrowKeys的帮助下制作
how can i handle the arrowkeys whether they are pressed or not.
i had used the w,s,a,d keys to do that function. I want to make that
with the help of ArrowKeys
ANSI C为键盘提供基于行的界面。用户组成一行,
类型返回,并将整行输入到程序中。它非常适合用于b / b
目的,但不适用于交互式图形。
但是在DOS / Windows上的Unix或conio上的curses将提供一个功能
叫做kbhit,可能会做你想要的。通过指定键代码而不是字符,可以获得
箭头键。但是不要问我关于细节的问题,因为我已经用了很长时间了。
-
免费游戏和编程好东西。
http://www.personal。 leeds.ac.uk/~bgy1mm
ANSI C offers a line-based interface to the keyboard. User composes a line,
types return, and the full line is fed to the program. It is very good for a
lot of purposes, but not for interactive graphics.
However curses on Unix or conio on DOS / Windows will offer a function
called kbhit which probably does what you want. There are ways of getting
arrow keys by specifying key codes rather than characters. However don''t ask
me about the details, it is so long since I''ve used it.
--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm
On Sun,2007年6月24日17:05:31 -0000,在comp.lang中。 c,sravan_reddy001
< sr ************* @ gmail.comwrote:
On Sun, 24 Jun 2007 17:05:31 -0000, in comp.lang.c , sravan_reddy001
<sr*************@gmail.comwrote:
>我怎么能处理箭头键是否被按下。
我用w,s,a,d键来完成这个功能。我想在ArrowKeys的帮助下制作
>how can i handle the arrowkeys whether they are pressed or not.
i had used the w,s,a,d keys to do that function. I want to make that
with the help of ArrowKeys
这是一个常见问题
-
Mark McIntyre
CLC FAQ< http://c-faq.com/>
CLC自述文件:< http:// www .ungerhu.com / jxh / clc.welcome.txt>
This is a FAQ
--
Mark McIntyre
CLC FAQ <http://c-faq.com/>
CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt>
这篇关于如何处理ArrowKeys的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!