dcsimg
Results 1 to 7 of 7

Thread: ASCII input API plese

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Location
    Slovenia
    Posts
    15

    Unhappy 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.

  2. #2
    Member
    Join Date
    Mar 2004
    Location
    Texas
    Posts
    53
    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.
    Good programming site:
    *http://www.planet-source-code.com

    Our CS Clan Page:
    *http://h2p.inter-gamer.com/index.html

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Location
    Slovenia
    Posts
    15
    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.
    Dim Somebody
    Dim Me

    Private Sub Day_Load ()
    Somebody = *******
    Me = myself
    Check
    End sub

    Public Function Chek ()
    If Mess (Sombody) = Me Then
    Kill Somebody
    End if
    End Function

  4. #4
    Member
    Join Date
    Mar 2004
    Location
    Texas
    Posts
    53
    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
    Good programming site:
    *http://www.planet-source-code.com

    Our CS Clan Page:
    *http://h2p.inter-gamer.com/index.html

  5. #5

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Location
    Slovenia
    Posts
    15
    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.
    Dim Somebody
    Dim Me

    Private Sub Day_Load ()
    Somebody = *******
    Me = myself
    Check
    End sub

    Public Function Chek ()
    If Mess (Sombody) = Me Then
    Kill Somebody
    End if
    End Function

  6. #6
    Member
    Join Date
    Mar 2004
    Location
    Texas
    Posts
    53
    k cool
    Good programming site:
    *http://www.planet-source-code.com

    Our CS Clan Page:
    *http://h2p.inter-gamer.com/index.html

  7. #7

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Location
    Slovenia
    Posts
    15
    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

    Dim Somebody
    Dim Me

    Private Sub Day_Load ()
    Somebody = *******
    Me = myself
    Check
    End sub

    Public Function Chek ()
    If Mess (Sombody) = Me Then
    Kill Somebody
    End if
    End Function

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width