| View previous topic :: View next topic |
| Author |
Message |
Noz3001 I'm a spammer
Reputation: 26
Joined: 29 May 2006 Posts: 6220 Location: /dev/null
|
Posted: Mon Jul 28, 2008 4:32 am Post subject: |
|
|
| sponge wrote: | | noz3001 wrote: | | Bit offtopic, but I always thought Ghost Online used DInput? | It does. =/ If you check the WNDPROC, you will see no cmps with WM_KEYDOWN, WM_CHAR or WM_UNICHAR. |
Then why not visit that forum which specialises in this stuff and get a DInput hook? |
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Tue Jul 29, 2008 11:05 am Post subject: |
|
|
| ReadFile for a VK code and use that (since you are using a console app) ? |
|
| Back to top |
|
 |
Renkokuken GO Moderator
Reputation: 4
Joined: 22 Oct 2006 Posts: 3249
|
Posted: Tue Jul 29, 2008 11:39 am Post subject: |
|
|
| If it's a console application, I recommend ReadConsoleInput. |
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Tue Jul 29, 2008 12:53 pm Post subject: |
|
|
Or call GetStdHandle, use that to FlushConsoleInputBuffer, then loop Sleep with kbhit until it returns true. When that happens, call getch and the return should be scancode of the key pressed. However, from memory this will not work for control keys or F-keys.
nb. kbhit and getch are declared in conio.h |
|
| Back to top |
|
 |
|