Directinput

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steve

    #1

    Directinput

    does anyone know where i can find an example of directinput for a joystick
    on VB.NET. all the examples i can find apply to vb 6.0.

    Thanks

    Steve


  • Armin Zingler

    #2
    Re: Directinput

    "Steve" <steven.poulton @ntlworld.com> schrieb[color=blue]
    > does anyone know where i can find an example of directinput for a
    > joystick on VB.NET. all the examples i can find apply to vb 6.0.[/color]

    SDK:
    http://msdn.microsoft.com/library/de...st/directx.asp

    Newsgroup:
    microsoft.publi c.win32.program mer.directx.man aged


    Armin

    Comment

    • Steve

      #3
      Re: Directinput

      but i can only find examples that relate to C#. im looking for VB.net
      examples

      "Armin Zingler" <az.nospam@free net.de> wrote in message
      news:%23avbsMOf FHA.1472@TK2MSF TNGP12.phx.gbl. ..[color=blue]
      > "Steve" <steven.poulton @ntlworld.com> schrieb[color=green]
      >> does anyone know where i can find an example of directinput for a
      >> joystick on VB.NET. all the examples i can find apply to vb 6.0.[/color]
      >
      > SDK:
      > http://msdn.microsoft.com/library/de...st/directx.asp
      >
      > Newsgroup:
      > microsoft.publi c.win32.program mer.directx.man aged
      >
      >
      > Armin[/color]


      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: Directinput

        "Steve" <steven.poulton @ntlworld.com> schrieb:[color=blue]
        > but i can only find examples that relate to C#. im looking for VB.net
        > examples[/color]

        Most C# code can be easily translated to VB.NET using converters:

        Converting code between .NET programming languages
        <URL:http://dotnet.mvps.org/dotnet/faqs/?id=languagecon verters&lang=en >

        --
        M S Herfried K. Wagner
        M V P <URL:http://dotnet.mvps.org/>
        V B <URL:http://classicvb.org/petition/>

        Comment

        • Ken Tucker [MVP]

          #5
          Re: Directinput

          Hi,

          Directx sdk 9.0b has vb.net samples
          http://www.microsoft.com/downloads/d...displaylang=en

          Ken
          -------------
          "Steve" <steven.poulton @ntlworld.com> wrote in message
          news:obDwe.1089 9$11.3234@newsf e2-win.ntli.net...
          but i can only find examples that relate to C#. im looking for VB.net
          examples

          "Armin Zingler" <az.nospam@free net.de> wrote in message
          news:%23avbsMOf FHA.1472@TK2MSF TNGP12.phx.gbl. ..[color=blue]
          > "Steve" <steven.poulton @ntlworld.com> schrieb[color=green]
          >> does anyone know where i can find an example of directinput for a
          >> joystick on VB.NET. all the examples i can find apply to vb 6.0.[/color]
          >
          > SDK:
          > http://msdn.microsoft.com/library/de...st/directx.asp
          >
          > Newsgroup:
          > microsoft.publi c.win32.program mer.directx.man aged
          >
          >
          > Armin[/color]



          Comment

          • Cor Ligthert

            #6
            Re: Directinput

            Steve,

            The sample from the JoyStick in the DirectX SDK 9c is probably very easy to
            translate from C# to VBNet. (I did some of the others) .

            You can use a converter, if you do not care about the syntax that is created
            (The samples are probably translated C++ samples to C#, therefore it looks
            in VBNet terrible). It will therefore as well not completly be converted.

            Be aware that the referenced DLL in that sample is (probably) completly
            unused, it is referenced so that you can direct remove it and have not to
            search why it is in the sample.

            I have no joystick on my computer so I cannot help you further.

            Cor


            Comment

            Working...