Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Fullscreen problems  (Read 2454 times)
xavram
Community Member
*
Posts: 525


« on: December 09, 2002, 02:28:00 PM »

My app runs just fine in Windowed mode but I seem to be having some problems with the InputEngine in FullScreen Mode.  Basically, it doesn't seem to recognize me clicking the mouse or hitting any keys (like the ESC key to end the program!) when I'm in full screen mode.  Any ideas why this would be? I'm using....

  InputEng.GetAbsMouseState MX, MY, But1, But2

..to get the mouse position and the state of the buttons and lines like...

  If InputEng.IsKeyPressed(TV_KEY_ESCAPE) = True Then blnRunning = False

...to recognize keystrokes for things like terminating the program.  Again, it all works fine in Windowed but I get back no response in FullScreen.

I'm guessing that I'm missing something obvious but after lots of attempts, I'm still coming up with no results.  Please help out if you can see what I'm missing!
Logged
SylvainTV
Administrator
Community Member
*****
Posts: 4946


WWW
« Reply #1 on: December 09, 2002, 02:33:23 PM »

Do you initialize the engine into your own form or do you use internal form of the engine ?
Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
xavram
Community Member
*
Posts: 525


« Reply #2 on: December 09, 2002, 02:41:44 PM »

"TV.Init3DFullscreen 800, 600, 32, False" is the line I use to int the fullscreen mode, so I believe that's using the internal form, right?
Logged
SylvainTV
Administrator
Community Member
*****
Posts: 4946


WWW
« Reply #3 on: December 09, 2002, 03:13:42 PM »

Yep you're not using any other form right ?
If this internal form loose its focus then the input won't work...
Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
Quarantine
Community Member
*
Posts: 167


« Reply #4 on: December 09, 2002, 03:39:12 PM »

I found sometimes I had problems with input not being recognized. Some time after you setup everything in the engine do this.

Code:

TVInputEngine.ReAcquire(True, True)


And see if that helps. What it does is reacquire the keyboard and mouse.
Logged

xavram
Community Member
*
Posts: 525


« Reply #5 on: December 09, 2002, 04:25:33 PM »

Syl, nope, I don't make any reference to the form that I have UNLESS I choose to run the project in windowed mode...

...but no worries 'cause Q's answer fixed it!!!  Put that ReAcquire stuff right at the beginning and it worked like a charm.  Thanks Q, that's two problems of mine you've knocked out today!
Logged
SylvainTV
Administrator
Community Member
*****
Posts: 4946


WWW
« Reply #6 on: December 09, 2002, 04:45:22 PM »

Nice I will remember this one Smiley
Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
Quarantine
Community Member
*
Posts: 167


« Reply #7 on: December 09, 2002, 05:45:29 PM »

No problem at all, when I first started with TV I had a hard time finding answers. Now that I am fairly proficient with TV (unless Sylv changes something Smiley ) I like to try and help out.
Logged

Pages: [1]
  Print  
 
Jump to:  

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