I found glut doesn't provide functionality to detect SHIFT or CTRL key is down. It's for only when some other key was pushed. Please see the web page below.
http://www.lighthouse3d.com/opengl/glut/index.php?5
先日の疑問についてですが、やはりSHIFTやCTRLキーが押されたかどうかだけを判断する機能をglutは持っていないようです。あくまでも他のキーが押された時にのみの判定だそうです。
-----------------------
CTRL, ALT and SHIFT
Sometimes we may want to know if one modifier key, i.e. CTRL, ALT or SHIFT is being pressed. GLUT provides a function that detects if any modifier is being pressed. This function should only be called inside the functions that process keyboard or mouse input events. The syntax for this function is:
int glutGetModifiers(void);
-----------------------
登録:
コメントの投稿 (Atom)
0 件のコメント:
コメントを投稿