|
-
Aug 7th, 2005, 02:24 PM
#1
Thread Starter
transcendental analytic
keypress
By detecting WM_KEYDOWN I can get the key code but how do I get the ascii code that are mapped to them?
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Aug 7th, 2005, 03:33 PM
#2
Re: keypress
Can you use WM_CHAR in stead?
-
Aug 7th, 2005, 03:39 PM
#3
Re: keypress
Since I am leaving now, just let me show a small example..
Code:
case WM_CHAR:
{
int ascii_code = wparam; //The ascii code
int key_state = lparam; //What other special keys like Alt/Shift was pressed
// take whatever action
} break;
- ØØ -
-
Aug 7th, 2005, 07:46 PM
#4
Thread Starter
transcendental analytic
Re: keypress
thanks note 
unfort can't rate your post yet
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Aug 18th, 2005, 04:34 AM
#5
Re: keypress
Pa probleme...happy it helped since I went on my vecation just a few minutes after I posted the reply...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|