Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: Where's 1.0?  (Read 2479 times)

praetor

  • Veteran
  • ***
  • Karma: +0/-0
  • Posts: 141
    • View Profile
Where's 1.0?
« on: October 17, 2006, 07:14:45 AM »

Hey, I've been looking for 1.0 for a while now. Do you have any idea how long the last little bit will take?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Where's 1.0?
« Reply #1 on: October 17, 2006, 07:41:26 AM »

I'm really waiting on two things:
1) Mac OSX port, Justin Walsh is supposedly working on this along with Ogre Eihort + OSX :)
2) More testing of the joystick overhaul

However, feel free to download cvs head, as that is the makings of 1.0. And, if you have a joystick, I would love reports on how the console demo works with your joystick(s) ;)
Logged

praetor

  • Veteran
  • ***
  • Karma: +0/-0
  • Posts: 141
    • View Profile
Where's 1.0?
« Reply #2 on: October 17, 2006, 09:18:02 AM »

Alright. I'll check out CVS for now. I pretty much need the de-Singleton stuff the most. I have a regular joystick and a USB controller. I'll check them both out.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Where's 1.0?
« Reply #3 on: October 17, 2006, 09:21:01 AM »

I have to ask what you need to de-Singleton stuff for? Multiple windows?

One thing I should mention, is that DirectInput only works with toplevel windows. So, using Ogre Studio as an example, you would pass the MainForm's window handle to OIS, and not the child OgreView window's. So, OIS would only work with one window there.

Though, for Ogre created windows (what you get if you do not embed Ogre windows), I imagine they should all work with seperate instances of OIS (one for each window) I think they are all toplevel.
Logged

praetor

  • Veteran
  • ***
  • Karma: +0/-0
  • Posts: 141
    • View Profile
Where's 1.0?
« Reply #4 on: October 17, 2006, 05:09:43 PM »

It is actually a design issue. I leave the issue of top-level window wrangling to the user, but a non-singleton fits better in my design.
Logged

Wolfmanfx

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 3
    • View Profile
Where's 1.0?
« Reply #5 on: January 02, 2007, 01:40:10 PM »

Hi,
@pjcast
I have the same problem :)
I have GTK+ Application with multiply ogre windows so there are my questions :)

1. I passed the top window handle but now i get input all the time how do u managed this?(Focus?)

2. How did u poll the events without 100% cpu overhead?

hope u can give me some hints :)
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Where's 1.0?
« Reply #6 on: January 02, 2007, 04:45:55 PM »

I don't use OIS for my C# app.. since Winforms has a pretty good niput API and suits a windowed app, editor better, I did not try to integrate OIS.

However, Falagard uses OIS for his wxWidgets editor. Not sure how he works it... but, he must be checking to see which render window has focus, and directs input to it. No, it would not make CPU usage any higher, just call capture once perframe, determine what window is active and send messages to your window :)
Logged

Wolfmanfx

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 3
    • View Profile
Where's 1.0?
« Reply #7 on: January 03, 2007, 03:04:38 AM »

So i got the OIS working with my app but my problem is that i call capture in  its own thread so it consumes the full cpu is there a blocking(event driven way to capture events i mean polling is not that good :)
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Where's 1.0?
« Reply #8 on: January 03, 2007, 09:55:30 AM »

If you seperated it in a thread, in your input polling thread, just call sleep(somevalue)... You don't need to poll at full speed :D

There are no blocking reads done by OIS so if you don't sleep the thread some, it will consume 100% CPU.
Logged

Wolfmanfx

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 3
    • View Profile
Where's 1.0?
« Reply #9 on: January 03, 2007, 10:39:49 AM »

Ok i will sleep around :)
Another question is work the ois linux backend the same way as the win32 in the manner of the taking only the level window?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Where's 1.0?
« Reply #10 on: January 03, 2007, 11:34:18 AM »

I can't say for sure as I havn't tried; however, I think the Linux backend is a little better in that regards. As long as you have a x11 window to give to OIS it should work with non-top level windows. Though, joystick access does not respect windows as it just uses the joystick(s) attached to the system (doesn't really need a Window handle in fact).

Though, you might as well go for the least common demnominator and just plan to do it like you do under Win32, as then you can use your code anywhere with little changes ;)
Logged