Wrecked Games
September 05, 2010, 03:47:01 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: We're just that awesome.
 
   Home   Help Search Members Login Register  
Pages: [1]
  Print  
Author Topic: New interface device  (Read 313 times)
mani
Newbie
*
Posts: 2


View Profile
« 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
*****
Posts: 2544



View Profile WWW
« 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
*
Posts: 2


View Profile
« Reply #2 on: January 04, 2010, 10:14:29 PM »

Thanks You. Smiley
I shall get back in the case of some difficulty .
Logged
pjcast
Administrator
Veteran
*****
Posts: 2544



View Profile WWW
« 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
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!