mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-29 14:07:58 +03:00

Fixed TR1 compilance. Input configuration support for Win32. Support for analog axis in PadMan. git-svn-id: http://svn.purei.org/purei/trunk@361 b36208d7-6611-0410-8bec-b1987f11c4a2
46 lines
1,013 B
C++
46 lines
1,013 B
C++
#include "OutputWnd.h"
|
|
#include "../PS2VM.h"
|
|
|
|
#define CLSNAME _T("COutputWnd")
|
|
|
|
using namespace Framework;
|
|
|
|
COutputWnd::COutputWnd(HWND hParent, RECT* pR)
|
|
{
|
|
if(!DoesWindowClassExist(CLSNAME))
|
|
{
|
|
WNDCLASSEX wc;
|
|
memset(&wc, 0, sizeof(WNDCLASSEX));
|
|
wc.cbSize = sizeof(WNDCLASSEX);
|
|
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
|
|
wc.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH);
|
|
wc.hInstance = GetModuleHandle(NULL);
|
|
wc.lpszClassName = CLSNAME;
|
|
wc.lpfnWndProc = CWindow::WndProc;
|
|
wc.style = CS_OWNDC | CS_HREDRAW | CS_VREDRAW;
|
|
RegisterClassEx(&wc);
|
|
}
|
|
|
|
Create(NULL, CLSNAME, NULL, WS_VISIBLE | WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN, pR, hParent, NULL);
|
|
SetClassPtr();
|
|
}
|
|
|
|
COutputWnd::~COutputWnd()
|
|
{
|
|
|
|
}
|
|
|
|
long COutputWnd::OnSize(unsigned int nMode, unsigned int nX, unsigned int nY)
|
|
{
|
|
m_OnSizeChange();
|
|
return TRUE;
|
|
}
|
|
|
|
long COutputWnd::OnPaint()
|
|
{
|
|
//if(CPS2VM::m_pGS != NULL)
|
|
//{
|
|
// CPS2VM::m_pGS->Flip();
|
|
//}
|
|
return TRUE;
|
|
}
|