// Shave and a Haircut // (c) 2019 Epic Games // US Patent 6720962 // platform-win32.c -- win32 platform specific stuff /// you'll need to probably make some changes in valuators.cpp /// for single mouse buttons on the mac. /// look at MouseClickFunc static int getTAB( void ) { //#ifndef MAX3D //#ifndef MAYA3D // valuator[TABKEY]= (GetAsyncKeyState(VK_TAB)&32768); //#endif //#endif return ( valuator[TABKEY] ); } static int getESCAPE( void ) { #ifndef MAX3D #ifndef MAYA3D valuator[ESCKEY] = ( GetAsyncKeyState( VK_ESCAPE ) & 32768 ); #endif #endif return ( valuator[ESCKEY] ); } static int getSHIFT( void ) { int tvv = 0; return ( tvv ); } static int getCTRL( void ) { int tvv = 0; tvv = ( GetAsyncKeyState( VK_CONTROL ) & 32768 ); return ( tvv ); } static int getALT( void ) { int tvv = 0; tvv = ( GetAsyncKeyState( 120 ) ); tvv += ( GetAsyncKeyState( 121 ) ); return ( tvv ); } #ifdef DOESNTWORK int getCTRL( void ) { int rt; int ret = 0; char tmp[255]; rt = glutGetModifiers( ); if( rt == GLUT_ACTIVE_CTRL ) ret = 1; sprintf( tmp, "active = %d", rt ); DRAW_STATUS( tmp ); return ( ret ); } int getSHIFT( void ) { int rt; int ret = 0; rt = glutGetModifiers( ); if( rt == GLUT_ACTIVE_SHIFT ) ret = 1; return ( ret ); } #endif