Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: 6.3 to 6.5  (Read 396 times)
Canning
Community Member
*
Posts: 592


« on: September 23, 2011, 08:08:13 AM »

I have converted my 6.3 project into 6.5 in VB2010... yet it wont detect my key inputs... it is driving me mad.

Is there something special I need to do. I have declared and set the input engine up as I have done in other 6.5 apps.

Have I missed a step:

1.
Code:
    Dim TV As MTV3D65.TVEngine
    Dim Scr As MTV3D65.TVScreen2DImmediate
    Dim Inp As MTV3D65.TVInputEngine
    Dim TexFactory As MTV3D65.TVTextureFactory

2.
Code:
        TV = New MTV3D65.TVEngine
        Scr = New MTV3D65.TVScreen2DImmediate
        Inp = New MTV3D65.TVInputEngine
        TexFactory = New MTV3D65.TVTextureFactory

3.
Code:
        If Inp.IsKeyPressed(MTV3D65.CONST_TV_KEY.TV_KEY_UP) = True Then
            mblnUpKey = True
        End If

The 6.3 code works perfectly. All i have done is remove the 6.3 reference, added the 6.5 reference and changed the required variables....
« Last Edit: September 23, 2011, 08:45:43 AM by Canning » Logged

I am using 2010 VB.NET and TV 6.5 with Windows 7
arnienet
Customers
Community Member
*****
Posts: 263


WWW
« Reply #1 on: September 23, 2011, 01:14:58 PM »

Did you initialise in 6.5? I think you can get away without it in 6.3:

Public Inp As TVInputEngine

'----------------------------------------------

' Input has an additional init method to call.
Inp = New TVInputEngine
' Lets init both keyboard and mouse:
Inp.Initialize(True, True)

should do the trick Smiley
Logged

Total Dev time = 50% to code, 50% to test, 50% to find errors, 50% to fix, that's why it takes twice as long.

Dawn World MMO
Dimple
Community Member
*
Posts: 580


« Reply #2 on: September 23, 2011, 08:19:28 PM »

Canning,

Check out this download TV6.5 Tutorial 17 its not a completed tutorial yet but it maybe of help to you. It suffers gimbal lock now and then. Oh, its Vbnet E10 ver.... Hmm not sure but you may have to change the location of the Media folder if it doesn't see the models. I hope you won't have to mess with that, but you might have to.



 

« Last Edit: September 26, 2011, 07:29:19 PM by Dimple » Logged

Using VB.NET, TV3D 6.5, VISTA
~~~~~~~~~~~~~~~~~~~~~~~

"Know how to ask. There is nothing more difficult for some people, nor for others, easier."

- Baltasar Gracian
Canning
Community Member
*
Posts: 592


« Reply #3 on: September 23, 2011, 10:12:14 PM »

Thanks for your input guys.

The problem was the - Inp.Initialize(True, True)
Logged

I am using 2010 VB.NET and TV 6.5 with Windows 7
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks