Hello,
I am trying to run on a W2K system that has no mouse physically attached.
It is an embedded system so there is no way to have a mouse connected when
the target hardware is in its final configuration. If I run the software
with a mouse connected, it runs correctly without errors. When the mouse is
not connected I get a error stating: DirectInput::CreateDevice:Device not
Registered. The error is created when the SDL_INIT(SDL_INIT_VIDEO) command
is called. The following is a simple version of code that duplicates this
error.
/* – Include the precompiled libraries – */
#ifdef WIN32
#pragma comment(lib, “SDL.lib”)
#pragma comment(lib, “SDLmain.lib”)
#endif
#include “SDL.h”
int main(int argc, char **argv)
{
printf("\nInitialization of Video\n");
/* initialize SDL */
if ( SDL_Init( SDL_INIT_VIDEO ) < 0 )
{
fprintf( stderr, "Video initialization failed: %s\n",
SDL_GetError( ) );
SDL_Quit( );
}
printf("\nAfter video initialization\n");
printf("\nEnd of test.\n");
SDL_Quit( );
return 0;
}
Thanks in advance for any help you can give me.
Mark