[KPhotoAlbum] Patch for initial support for 6 degrees of freedom devices.

Ben Martin monkeyiq at users.sourceforge.net
Wed Apr 23 17:14:00 CEST 2008

  Attached is a patch to use the libsixdof library
to allow a 6 degrees of freedom device to effect some control over

Support is currently limited to: next/prev image, zoom in/out, pan
around x,y and rotate image. This does make a reasonable first stab at
exposing functionality and using a 6dof device when in slideshow mode.

The patch is a little ugly, the myApplication should really be migrated
into another cpp file etc. I'd love to use dbus/dcop to allow libsixdof
to automatically find and expose interesting functions to avoid the
function table part, but thats another story for another
hackfest :/

  Because the autofools is a little differently setup in kphotoalbum I
hacked config.h to #define HAVE_SIXDOF and changed the Makefiles
manually here.

Something like this appearing in configure.ac and the use of SIXDOF
flags in the Makefile.am for kphotoalbum should integrate the support
into the build system too. 

PKG_CHECK_MODULES( SIXDOF, sixdofc >= 0.0.1, 
echo "building support for 6 degree-of-freedom devices..."
echo "not building support for 6 degree-of-freedom devices..."
AM_CONDITIONAL(HAVE_SIXDOF, test x"$have_sixdof" = xyes)

Let me know if this is desired functionality mainline... I'm fairly keen
to get support mainline so I don't have to maintain a bunch of patches
for different apps that I add 6dof too. I'm happy to clean up the patch
if there is interest.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: kphotoalbum-6dof-svn-23apr2008.patch
Type: text/x-patch
Size: 8577 bytes
Desc: not available
Url : /mailman/pipermail/kphotoalbum/attachments/20080424/4522fb24/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : /mailman/pipermail/kphotoalbum/attachments/20080424/4522fb24/attachment.pgp 

More information about the KPhotoAlbum mailing list