commiting fixes from Ettore for building on linux & win 32

This commit is contained in:
Jean-Luc Peurière 2007-07-15 14:30:09 +00:00
parent 1104a39f11
commit 603da178b9
4 changed files with 12 additions and 23 deletions

@ -70,9 +70,6 @@ GHOST_NDOFManager::deviceOpen(GHOST_IWindow* window,
if (ndofLibraryInit && ndofDeviceOpen)
{
printf("%i client \n", ndofLibraryInit());
m_DeviceHandle = ndofDeviceOpen((void *)&currentNdofValues);
#if defined(_WIN32) || defined(__APPLE__)
m_DeviceHandle = ndofDeviceOpen((void *)&currentNdofValues);
#else

@ -31,14 +31,7 @@
class GHOST_NDOFManager
{
public:
/**
* Constructor.
*/
GHOST_NDOFManager();
/**
* Destructor.
*/
virtual ~GHOST_NDOFManager();
void deviceOpen(GHOST_IWindow* window,

@ -843,6 +843,17 @@ LRESULT WINAPI GHOST_SystemWin32::s_wndProc(HWND hwnd, UINT msg, WPARAM wParam,
* In GHOST, we let DefWindowProc call the timer callback.
*/
break;
case WM_BLND_3DX:
{
GHOST_TEventNDOFData ndofdata;
system->m_ndofManager->GHOST_NDOFGetDatas(ndofdata);
system->m_eventManager->
pushEvent(new GHOST_EventNDOF(
system->getMilliSeconds(),
GHOST_kEventNDOFMotion,
window, ndofdata));
}
break;
}
}
else {
@ -855,17 +866,6 @@ LRESULT WINAPI GHOST_SystemWin32::s_wndProc(HWND hwnd, UINT msg, WPARAM wParam,
WM_CREATE 0x01
We let DefWindowProc do the work.
*/
case WM_BLND_3DX:
{
GHOST_TEventNDOFData ndofdata;
system->m_ndofManager->GHOST_NDOFGetDatas(ndofdata);
system->m_eventManager->
pushEvent(new GHOST_EventNDOF(
system->getMilliSeconds(),
GHOST_kEventNDOFMotion,
window, ndofdata));
}
break;
}
}
else {

@ -484,7 +484,6 @@ GHOST_SystemX11::processEvent(XEvent *xe)
} else {
/* Unknown client message, ignore */
}
#endif
break;
}