-
ASCII input API plese
I have made somekind of a game pad on the paralel port.I know how to read the port but i need to send the data to a game.So i plan to make windows think a key is being pused.I know for the SendKey method but i need to make it think that the key is being holded down.So if i hold the buton down for 1 sec on my game pad it must look like the buton is being hold down for 1 sec on the keybord. I have no idea how to do this but those API thingis can do alonst evrything. Plese give me an API for this job.
Plese.
-
Hey! If you want to send key strokes, here's and excelent link for how to use keybd_event in VB: http://www.andreavb.com/forum/viewto...ID=1802&page=0
Now how you are going to convert what you get from the gamepad, I'm not sure, you may have to look into using a DirectX technology, DirectInput, to see if it how it handles gamepads.
-
There is no real game pad.Its just home made device whith switches that act as a game pad.The whole thing is on the LPT port.I have the code to interface whith the LPT.
-
Sorry but I'm still kinda confused what you would like info on. Now i know that you said that you have the code for the game pad and how to use it, so what's your question, can you make it more detailed please. Thanks
-
There is no qestion in my last reply.You understanded like its a real gamepad on the game port.So you srarted balbing on these APIs that get data from the input devices.I now know how to use this keyb_event.Fist i thot it only works whith Alt,Sift,Ctrl... But then i made a program that simulates precing "A" and i set the game controls "A" for forvard.and the guy in the game walkd for 1 sec and holt for 1 sec.
Thaks for the link
PS:
there is no qestion here eather.
-
-
This game pad can have to 40 butons (8 outputs x 5 inputs = 40 butons). This game pad has not a single electronic part.Its a made out of paper alu folium and some wires.I figured out how to make a simple switch out of thick paper and alu folium.So it can be 3 mm thick.This one im curently making is for my N64 Emulator.
If you want to build it your self i cod give you some plans.(0% risk of dameging you lpt port)
The software for ti is not complete (60% done)
I want for my program to run in the background (whith the icon left from the clock) cod you give me a API for this job
;)