Tuesday, May 29, 2007



Wiimote for C++ : I have released the C++ library for Wiimote. I would like to release the library for any platforms such as Linux and MacOSX finally, but I have released it only for WIN32 platforms at the first release.

The package includes the most simple sample which outputs data of a Wiimore to the standard console. The main source code is the following.
#include <stdio.h>
#include <cybergarage/wii/Wiimote.h>
using namespace CyberGarage;
int main( int argc, char *argv[] )
{
 Wiimote *wiimote;
 wiimote = new Wiimote();
 if (wiimote->open() == false) {
  delete wiimote;
  printf("Could not find Wiimote !!");
  return 0;
 }
 do {
  wiimote->read();
  printf("\r%+d %+d %+d %s %s %s %s %s %s %s %s %s %s %s",
   (wiimote->getXMotion()-0x80),
   (wiimote->getYMotion()-0x80),
   (wiimote->getZMotion()-0x80),
   (wiimote->IsAPressed() ? "A" : " "),
   (wiimote->IsBPressed() ? "B" : " "),
   (wiimote->IsOnePressed() ? "1" : " "),
   (wiimote->IsTwoPressed() ? "2" : " "),
   (wiimote->IsUpPressed() ? "U" : " "),
   (wiimote->IsDownPressed() ? "D" : " "),
   (wiimote->IsLeftPressed() ? "L" : " "),
   (wiimote->IsRightPressed() ? "R" : " "),
   (wiimote->IsMinusPressed() ? "-" : " "),
   (wiimote->IsPlusPressed() ? "+" : " "),
   (wiimote->IsHomePressed() ? "H" : " ")
   );
  Sleep(100);
 } while (wiimote->IsHomePressed() == false);
 wiimote->close();
 delete wiimote;
 return 0;
}
Please check the document how to use the library in more detail :-)

Saturday, May 26, 2007

Cyber Media Gate for C : is a tiny protocol stack of UPnP/AV based on CyberLink for C, and I have released the new version as v1.2 today. The major changes are bellow.
* Added installer projects for the WIN32 samples.
* Added the following functions to set attributes of DLNA.
cg_upnp_media_resource_setdlnaattribute()
cg_upnp_media_resource_getdlnaattribute()
cg_upnp_media_resource_getdlnapnfrommimetype()
* Updated cg_upnp_dms_filesys_updatecontentlist() to set the attributes of DLNA.
* Updated cg_upnp_dms_youtube_updaterootcontentlist() to set the attributes of DLNA.
* Added to the device description as default.
* Changed the device description to set a static UDN as default.
* Changed cg_upnp_media_resource_setsize() not to set the attribute when the specified value less than zero.
I have updated the two samples, Cyber Media Gate for YoutTube and Cyber Media Gate for Windows Mobile, using the new library too.

Please check the download site to get the new library and samples.

Thursday, May 17, 2007



Wiimote : I am studying about a remote control of Wii now, and I am developing the prototype driver on WIN32 platform at first. I would like to release the driver for Virtual Reality for any platform such as other my drivers for Java3D.

Please check the current source codes if you want. To run the sample program, you have to install CyberX3D for C++ currently.

This page is powered by Blogger. Isn't yours?