check if button on game controller is pressed

Discussion in 'Programming General' started by superman1478, Dec 1, 2007.

check if button on game controller is pressed
  1. Unread #1 - Dec 1, 2007 at 6:44 PM
  2. superman1478
    Joined:
    Jan 21, 2007
    Posts:
    701
    Referrals:
    2
    Sythe Gold:
    0

    superman1478 Apprentice

    check if button on game controller is pressed

    I posted this on cruels, but nobody has replied yet so here goes...

    I want my program to check if i am pressing a button/strumming my guitar hero controller(it us plugged into a usb slot.).

    How would i go about doing this?

    Also i making a very basic version of guitar hero. I currently have different colored shapes being moved by timers. Like so:

    Code:
    Private Sub Timer1_Timer()
    Shape1(0).Top = Shape1(0).Top + 350
    End Sub
    
    Is there a more efficient way of doing this?

    note: I know nothing about creating a game in vb.
     
  3. Unread #2 - Dec 2, 2007 at 10:38 PM
  4. superman1478
    Joined:
    Jan 21, 2007
    Posts:
    701
    Referrals:
    2
    Sythe Gold:
    0

    superman1478 Apprentice

    check if button on game controller is pressed

    Oh, come on, nobody is willing to help?
     
  5. Unread #3 - Dec 3, 2007 at 3:58 AM
  6. Covey
    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    check if button on game controller is pressed

    just to let ya know i've read your question, but as brownhead said at cruels, i have no idea of how to do it.

    I'd assume there is some API somewhere that would be able to capture the procedures sent by the controller, but yer i'm only guessing...
     
  7. Unread #4 - Dec 3, 2007 at 4:27 AM
  8. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    check if button on game controller is pressed

    And as Covey DIDNT mention, don't double post if someone doesn't reply in a couple of hours, if the topic dies, it dies.
     
  9. Unread #5 - Dec 3, 2007 at 4:27 AM
  10. WoW Sucks
    Joined:
    Jan 21, 2007
    Posts:
    3,708
    Referrals:
    3
    Sythe Gold:
    0

    WoW Sucks Global Moderator
    Banned

    check if button on game controller is pressed

    Try asking on a large programming forum.
     
< [TUT] Starting a Word Processor | How do I? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site