this is the source code name "NetworkGameSkeletonSource"
ive compiled it fine and when it runs the cursor is not showing?
Posted 11 March 2013 - 11:33 AM
Posted 11 March 2013 - 11:33 AM
Posted 11 March 2013 - 12:38 PM
Posted 11 March 2013 - 01:35 PM
Add this to your initialize method before base.initialize
this.IsMouseVisible = true;
Ummm - this is native Win32 code we're talking about here. There is no "base", no "base.initialize", etc.
It appears that the gentleman thought C++ was extremely difficult and he was overjoyed that the machine was absorbing it; he understood that good C++ is difficult but the best C++ is well-nigh unintelligible.
Posted 11 March 2013 - 05:13 PM
It's most likely caused by this line:
FAILED( pMouse->SetCooperativeLevel( hWnd,
DISCL_FOREGROUND|DISCL_EXCLUSIVE ) ) )
See the documentation on SetCooperativeLevel here: http://msdn.microsoft.com/en-us/library/windows/desktop/microsoft.directx_sdk.idirectinputdevice8.idirectinputdevice8.setcooperativelevel(v=vs.85).aspx
If the system mouse is acquired in exclusive mode, the pointer is removed from the screen until the device is unacquired. This applies only to a mouse created by passing GUID_SysMouse to IDirectInput8::CreateDevice.
Edited by jrh2365, 11 March 2013 - 05:13 PM.