Menu

#15 [Linux] Updated patch for 6DoF devices

Unstable (example)
open
nobody
5
2007-11-24
2007-11-24
Absum
No

Since I have no idea how to update or change files, and no idea if I'm allowed to do it, I'm just posting a new patch here.

This is a Linux only patch to make devices such as 3Dconnexion SpaceNavigator recognizable by OIS. It also introduces a new component (Vector6) which is basically two Vector3 one for translation and one for rotation, there is probably a better way of doing this but none that I know of.

Current limitation is that even thou I'm reacting to syn events I get translation and rotation in two different events.

Anyway, this patch is cleaner then the old one and hopefully a little better variable naming but most of the code is copy&pasted.

Discussion

  • Absum

    Absum - 2007-11-24

    OIS-6DoF patch v1.1

     
  • Phillip Castaneda

    Patch looks ok, though I think it would be cleaner as simply two vector3 items. Though, the vector3 was mainly intended as orientation unit vectors... so, not sure this fits in either.

    One thought, is that the space nav is intended to be more of a mouse, hence the space mouse term. It might be better implemented as a mouse device - also since it has relative movement and not absolute. I will look into creating a new mouse type (like Mouse3d).

     

Log in to post a comment.