Crystal Space
Welcome, Guest. Please login or register.
November 21, 2017, 05:21:11 am

Login with username, password and session length
Search:     Advanced search
9081 Posts in 2051 Topics by 80551 Members
Latest Member: 小丑遊戲
* 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 4409 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 5.356 seconds with 16 queries.