jumping
This commit is contained in:
parent
0aabd0b323
commit
ccd1ce3ab1
|
@ -14,7 +14,7 @@
|
||||||
#include <GameServerAPI.h>
|
#include <GameServerAPI.h>
|
||||||
|
|
||||||
#include "../WindowManager/WindowShell.h"
|
#include "../WindowManager/WindowShell.h"
|
||||||
#include "L_inputClass.h"
|
#include "Win32\Win32Input.h"
|
||||||
#include "WinTimer.h"
|
#include "WinTimer.h"
|
||||||
#include "vld.h"
|
#include "vld.h"
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@ using namespace ::Oyster::Network;
|
||||||
using namespace ::Utility::DynamicMemory;
|
using namespace ::Utility::DynamicMemory;
|
||||||
using namespace ::DanBias::Client;
|
using namespace ::DanBias::Client;
|
||||||
|
|
||||||
|
LRESULT CALLBACK WindowCallBack(HWND handle, UINT message, WPARAM wParam, LPARAM lParam );
|
||||||
void ClientEventFunction( NetEvent<NetworkClient*, NetworkClient::ClientEventArgs> e );
|
void ClientEventFunction( NetEvent<NetworkClient*, NetworkClient::ClientEventArgs> e );
|
||||||
|
|
||||||
namespace DanBias
|
namespace DanBias
|
||||||
|
@ -68,6 +69,7 @@ namespace DanBias
|
||||||
WindowShell::WINDOW_INIT_DESC winDesc;
|
WindowShell::WINDOW_INIT_DESC winDesc;
|
||||||
winDesc.windowSize.x = 1280;
|
winDesc.windowSize.x = 1280;
|
||||||
winDesc.windowSize.y = 720;
|
winDesc.windowSize.y = 720;
|
||||||
|
winDesc.windowProcCallback = WindowCallBack;
|
||||||
|
|
||||||
if(! data.window->CreateWin(winDesc) )
|
if(! data.window->CreateWin(winDesc) )
|
||||||
return DanBiasClientReturn_Error;
|
return DanBiasClientReturn_Error;
|
||||||
|
@ -261,6 +263,35 @@ namespace DanBias
|
||||||
|
|
||||||
} //End namespace DanBias
|
} //End namespace DanBias
|
||||||
|
|
||||||
|
LRESULT CALLBACK WindowCallBack(HWND handle, UINT message, WPARAM wParam, LPARAM lParam )
|
||||||
|
{
|
||||||
|
PAINTSTRUCT ps;
|
||||||
|
HDC hdc;
|
||||||
|
|
||||||
|
switch ( message )
|
||||||
|
{
|
||||||
|
case WM_PAINT:
|
||||||
|
hdc = BeginPaint( handle, &ps );
|
||||||
|
EndPaint( handle, &ps );
|
||||||
|
break;
|
||||||
|
|
||||||
|
case WM_DESTROY:
|
||||||
|
PostQuitMessage( 0 );
|
||||||
|
break;
|
||||||
|
|
||||||
|
case WM_KEYDOWN:
|
||||||
|
switch( wParam )
|
||||||
|
{
|
||||||
|
case VK_ESCAPE:
|
||||||
|
PostQuitMessage( 0 );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return DefWindowProc( handle, message, wParam, lParam );
|
||||||
|
}
|
||||||
|
|
||||||
void ClientEventFunction( NetEvent<NetworkClient*, NetworkClient::ClientEventArgs> e )
|
void ClientEventFunction( NetEvent<NetworkClient*, NetworkClient::ClientEventArgs> e )
|
||||||
{
|
{
|
||||||
if( DanBias::data.state )
|
if( DanBias::data.state )
|
||||||
|
|
Loading…
Reference in New Issue