Crystal Space
Welcome, Guest. Please login or register.
November 27, 2015, 02:44:46 pm

Login with username, password and session length
Search:     Advanced search
9100 Posts in 2101 Topics by 10542 Members
Latest Member: Dpr7ivb0
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Project Development
| |-+  Development Discussion
| | |-+  new input control
« previous next »
Pages: [1] Print
Author Topic: new input control  (Read 3469 times)
Posts: 10

View Profile
« on: August 29, 2005, 10:01:11 am »


   I’m new to Crystal Space. My intention is to use virtual gloves as input control. I’ve been reading a bit about Crystal programming and still I have to dedicate it more time, but if you could orientate me it would be very helpful to me.

   What I have to do? an input driver or a plugin?
   Where can I find information about it?

   Thanks in advance,

Sr. Member
Posts: 295

View Profile
« Reply #1 on: August 29, 2005, 02:11:46 pm »

There is no dinstinction between drivers and plugins in Crystal Space. The typical way to extend CS is to create a plugin module. Your plugin's primary job will be to query the glove's state and then post that state to the CS event queue. You probably want to look at iEventQueue, iEventOutlet, and iEvent (see the API documentation at How you actually query the device for state depends upon the context. You may want to poll the device each time through the CS run-loop, or you may want to spawn a thread which watches the device, and then posts CS events as the device state changes.

« Reply #2 on: October 05, 2005, 09:38:12 pm »

Intra, I am actually looking to do exactly what you're looking to code up. I want to use data gloves inside of a 3d environment (im new to crystalspace3d so there will be a learning curve there as well), care to collaborate? Shoot me an email and maybe we can talk on an IM or something.
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 4.177 seconds with 16 queries.