Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: New interface device  (Read 821 times)

mani

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 2
    • View Profile
New interface device
« on: January 03, 2010, 11:44:43 PM »

Hi, I am quite new to OIS..
I am planning to do some research on integrating my handphone to the Game by creating a new OIS inputdevice.
Can some one give me leads/ directions on where to start and the best way to achieve this.
I would essentially send few signals like <Left>,<right> and so on over a TCP socket from my handphone , from where I want OIS to read and interpret them as inputs.
Any suggestions ?

Also wish to know if there is a way for quick testing( some kind of BlackBox) without having to integrate with the Game Engine at every step.
« Last Edit: January 03, 2010, 11:47:07 PM by mani »
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Re: New interface device
« Reply #1 on: January 04, 2010, 07:08:37 PM »

For testing, you can use the console app. There is an experimental LIRC OIS device (Linux Infrared Remote Control) which simply uses Boost::Asio to listen on a TCP socket for events. I'm sure it can be adapted fairly easily to meet your requirements. Or, at least used as some kind of reference for making a custom device. It might be easier to use something else for sockets than boost.
Logged

mani

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 2
    • View Profile
Re: New interface device
« Reply #2 on: January 04, 2010, 10:14:29 PM »

Thanks You. :)
I shall get back in the case of some difficulty .
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Re: New interface device
« Reply #3 on: January 05, 2010, 07:40:33 PM »

You just need to alter the config.h file of OIS to enable building the LIRC part. Or, at least use that as a reference to see what the define actually does to register the device.
Logged