taultunleashed logoSending keystrokes to DirectX? : Developer's Corner
newtopic  postreply
 [ 3 posts ] 
blue large dot

Sending keystrokes to DirectX? : Developer's Corner

Posted: May 13th, 2004, 10:30 am
 
Freeze
Freeze's Reps:
User avatar
I am trying to write a game using direct X and i know how to poll the keyboard, but i want to send events. I was wondering if you could point me to a helpful article or give me advice on how this is done.

Im writing my application in C++ and the keybd_event function works to send letters, but when i try to send anything that requires a VK Code, nothing. I assume i need to send the DIK codes somehow, but i cannot find documentation anywhere on how this is done.

Any help is appreciated.
Fellow DXProgrammer


Reply with quote
Posted: May 16th, 2004, 1:28 pm
 
Devestator
Devestator's Reps:
User avatar
I've tried doing this before and the only way I could find on how to do it was to make a DirectInput buffer that would intercept directinput functions that you could also send false input to. I never figured quite how to do that succesfully though. I'm sure the programmers of XU know how to do it, but I doubt they are going to tell you since they are worried about people taking the information and making a competitor program and making money off of it.

But if you could research on directx and figure out how to make a buffere for directinput that should do what you want, I think :)


Reply with quote
Posted: May 16th, 2004, 4:26 pm
 
Admin
Admin's Reps:
User avatar
Try hitting a directx forum.


Reply with quote
Want Advertisements After The Last Post Removed? Create A Free Account!

blue large dot Who is online
Users browsing this forum: No registered users and 6 guests

Popular Sections
SWTOR Cheats
Guild Wars 2 Cheats
Guild Wars 2 Hacks
Guild Wars 2 Bots
Diablo 3 Cheats
Guild Wars 2 Mods

Popular Sections
WoW Cataclysm Cheats & Exploits
WoW Cataclysm Hacks & Bots
Star Wars The Old Republic Cheats
SWTOR Mods
Torchlight 2 Cheats
SWTOR Space Mission Bots
Site Nav and RSS
RSS Feed of Developer's Corner RSS Feed 

SitemapIndex SitemapIndex
RSS Feed RSS Feed
Channel list Channel list
left bottom corner Site and Contents Copyright 2001-2012 All Rights Reserved TaultUnleashed.com bottom corner
top left
top right
createaccount
Username:   Password:   Remember Me?