Build fix for linux (don't want to require the very latest wxWidgets).
Very minor cleanup. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4233 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
3b76f6dc80
commit
e3d505c631
|
@ -93,6 +93,8 @@ void CCodeWindow::Load()
|
||||||
DebuggerFont.SetNativeFontInfoUserDesc(wxString::FromAscii(fontDesc.c_str()));
|
DebuggerFont.SetNativeFontInfoUserDesc(wxString::FromAscii(fontDesc.c_str()));
|
||||||
|
|
||||||
// Decide what windows to use
|
// Decide what windows to use
|
||||||
|
// This stuff really doesn't belong in CodeWindow anymore, does it? It should be
|
||||||
|
// in Frame.cpp somewhere, even though it's debugger stuff.
|
||||||
ini.Get("ShowOnStart", "Code", &bCodeWindow, true);
|
ini.Get("ShowOnStart", "Code", &bCodeWindow, true);
|
||||||
ini.Get("ShowOnStart", "Registers", &bRegisterWindow, false);
|
ini.Get("ShowOnStart", "Registers", &bRegisterWindow, false);
|
||||||
ini.Get("ShowOnStart", "Breakpoints", &bBreakpointWindow, false);
|
ini.Get("ShowOnStart", "Breakpoints", &bBreakpointWindow, false);
|
||||||
|
|
|
@ -325,8 +325,11 @@ CFrame::CFrame(wxFrame* parent,
|
||||||
bool _UseDebugger,
|
bool _UseDebugger,
|
||||||
bool ShowLogWindow,
|
bool ShowLogWindow,
|
||||||
long style)
|
long style)
|
||||||
: wxFrame(parent, id, title, pos, size, style), g_pCodeWindow(NULL)
|
: wxFrame(parent, id, title, pos, size, style)
|
||||||
, m_LogWindow(NULL), m_MenuBar(NULL), m_ToolBar(NULL), m_ToolBarDebug(NULL), m_ToolBarAui(NULL)
|
, g_pCodeWindow(NULL)
|
||||||
|
, m_MenuBar(NULL)
|
||||||
|
, m_LogWindow(NULL)
|
||||||
|
, m_ToolBar(NULL), m_ToolBarDebug(NULL), m_ToolBarAui(NULL)
|
||||||
, m_pStatusBar(NULL), m_GameListCtrl(NULL), m_Panel(NULL)
|
, m_pStatusBar(NULL), m_GameListCtrl(NULL), m_Panel(NULL)
|
||||||
, UseDebugger(_UseDebugger), m_bEdit(false), m_bTabSplit(false), m_bNoDocking(false)
|
, UseDebugger(_UseDebugger), m_bEdit(false), m_bTabSplit(false), m_bNoDocking(false)
|
||||||
, bRenderToMain(true), bFloatLogWindow(false), bFloatConsoleWindow(false)
|
, bRenderToMain(true), bFloatLogWindow(false), bFloatConsoleWindow(false)
|
||||||
|
@ -391,7 +394,12 @@ CFrame::CFrame(wxFrame* parent,
|
||||||
// ---------------
|
// ---------------
|
||||||
|
|
||||||
// Manager
|
// Manager
|
||||||
|
#ifdef _WIN32
|
||||||
m_Mgr = new wxAuiManager(this, wxAUI_MGR_DEFAULT | wxAUI_MGR_LIVE_RESIZE);
|
m_Mgr = new wxAuiManager(this, wxAUI_MGR_DEFAULT | wxAUI_MGR_LIVE_RESIZE);
|
||||||
|
#else
|
||||||
|
// wxAUI_MGR_LIVE_RESIZE does not exist in the wxWidgets 2.8 that comes with the latest ubuntu.
|
||||||
|
m_Mgr = new wxAuiManager(this, wxAUI_MGR_DEFAULT);
|
||||||
|
#endif
|
||||||
NOTEBOOK_STYLE = wxAUI_NB_TOP | wxAUI_NB_TAB_SPLIT | wxAUI_NB_TAB_EXTERNAL_MOVE | wxAUI_NB_SCROLL_BUTTONS | wxAUI_NB_WINDOWLIST_BUTTON | wxNO_BORDER;
|
NOTEBOOK_STYLE = wxAUI_NB_TOP | wxAUI_NB_TAB_SPLIT | wxAUI_NB_TAB_EXTERNAL_MOVE | wxAUI_NB_SCROLL_BUTTONS | wxAUI_NB_WINDOWLIST_BUTTON | wxNO_BORDER;
|
||||||
TOOLBAR_STYLE = wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_TEXT /*wxAUI_TB_OVERFLOW overflow visible*/;
|
TOOLBAR_STYLE = wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_TEXT /*wxAUI_TB_OVERFLOW overflow visible*/;
|
||||||
wxBitmap aNormalFile = wxArtProvider::GetBitmap(wxART_NORMAL_FILE, wxART_OTHER, wxSize(16,16));
|
wxBitmap aNormalFile = wxArtProvider::GetBitmap(wxART_NORMAL_FILE, wxART_OTHER, wxSize(16,16));
|
||||||
|
|
|
@ -45,7 +45,6 @@ class CLogWindow;
|
||||||
class CFrame : public wxFrame
|
class CFrame : public wxFrame
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
CFrame(wxFrame* parent,
|
CFrame(wxFrame* parent,
|
||||||
wxWindowID id = wxID_ANY,
|
wxWindowID id = wxID_ANY,
|
||||||
const wxString& title = wxT("Dolphin"),
|
const wxString& title = wxT("Dolphin"),
|
||||||
|
@ -156,7 +155,7 @@ class CFrame : public wxFrame
|
||||||
void OnFloatingPageSize(wxSizeEvent& event);
|
void OnFloatingPageSize(wxSizeEvent& event);
|
||||||
void DoFloatNotebookPage(wxWindowID Id);
|
void DoFloatNotebookPage(wxWindowID Id);
|
||||||
wxFrame * CreateParentFrame(wxWindowID Id = wxID_ANY, const wxString& title = wxT(""), wxWindow * = NULL);
|
wxFrame * CreateParentFrame(wxWindowID Id = wxID_ANY, const wxString& title = wxT(""), wxWindow * = NULL);
|
||||||
// User perspectives
|
// User perspectives. Should find a way to make these private.
|
||||||
struct SPerspectives
|
struct SPerspectives
|
||||||
{
|
{
|
||||||
std::string Name;
|
std::string Name;
|
||||||
|
@ -180,7 +179,6 @@ class CFrame : public wxFrame
|
||||||
void OnSelectPerspective(wxCommandEvent& event);
|
void OnSelectPerspective(wxCommandEvent& event);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
wxStatusBar* m_pStatusBar;
|
wxStatusBar* m_pStatusBar;
|
||||||
wxBoxSizer* sizerPanel;
|
wxBoxSizer* sizerPanel;
|
||||||
wxBoxSizer* sizerFrame;
|
wxBoxSizer* sizerFrame;
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
#include "EmuMain.h"
|
#include "EmuMain.h"
|
||||||
#include "Encryption.h" // for extension encryption
|
#include "Encryption.h" // for extension encryption
|
||||||
#include "Config.h" // for g_Config
|
#include "Config.h" // for g_Config
|
||||||
|
|
||||||
extern SWiimoteInitialize g_WiimoteInitialize;
|
extern SWiimoteInitialize g_WiimoteInitialize;
|
||||||
|
|
||||||
namespace WiiMoteEmu
|
namespace WiiMoteEmu
|
||||||
|
@ -372,11 +373,6 @@ void ExtensionChecksum(u8 * Calibration)
|
||||||
// Set initial valuesm this done both in Init and Shutdown
|
// Set initial valuesm this done both in Init and Shutdown
|
||||||
void ResetVariables()
|
void ResetVariables()
|
||||||
{
|
{
|
||||||
u8 g_Leds = 0x0; // 4 bits
|
|
||||||
u8 g_Speaker = 0x0; // 1 = on
|
|
||||||
u8 g_SpeakerVoice = 0x0; // 1 = on
|
|
||||||
u8 g_IR = 0x0; // 1 = on
|
|
||||||
|
|
||||||
g_ReportingMode = 0;
|
g_ReportingMode = 0;
|
||||||
g_ReportingChannel = 0;
|
g_ReportingChannel = 0;
|
||||||
g_Encryption = false;
|
g_Encryption = false;
|
||||||
|
@ -744,15 +740,14 @@ void readKeyboard()
|
||||||
{
|
{
|
||||||
key = XLookupKeysym((XKeyEvent*)&E, 0);
|
key = XLookupKeysym((XKeyEvent*)&E, 0);
|
||||||
|
|
||||||
if((key >= XK_F1 && key <= XK_F9) ||
|
if ((key >= XK_F1 && key <= XK_F9) ||
|
||||||
key == XK_Shift_L || key == XK_Shift_R ||
|
key == XK_Shift_L || key == XK_Shift_R ||
|
||||||
key == XK_Control_L || key == XK_Control_R) {
|
key == XK_Control_L || key == XK_Control_R) {
|
||||||
XPutBackEvent(WMdisplay, &E);
|
XPutBackEvent(WMdisplay, &E);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
int i;
|
for (int i = g_Wiimote_kbd.A; i < g_Wiimote_kbd.LAST_CONSTANT; i++)
|
||||||
for (i = g_Wiimote_kbd.A; i < g_Wiimote_kbd.LAST_CONSTANT; i++)
|
|
||||||
{
|
{
|
||||||
if (key == PadMapping[0].Wm.keyForControls[i - g_Wiimote_kbd.A])
|
if (key == PadMapping[0].Wm.keyForControls[i - g_Wiimote_kbd.A])
|
||||||
KeyStatus[i] = true;
|
KeyStatus[i] = true;
|
||||||
|
@ -760,21 +755,21 @@ void readKeyboard()
|
||||||
switch (g_Config.iExtensionConnected)
|
switch (g_Config.iExtensionConnected)
|
||||||
{
|
{
|
||||||
case EXT_NUNCHUCK:
|
case EXT_NUNCHUCK:
|
||||||
for (i = g_NunchuckExt.Z; i < g_NunchuckExt.LAST_CONSTANT; i++)
|
for (int i = g_NunchuckExt.Z; i < g_NunchuckExt.LAST_CONSTANT; i++)
|
||||||
{
|
{
|
||||||
if (key == PadMapping[0].Nc.keyForControls[i - g_NunchuckExt.Z])
|
if (key == PadMapping[0].Nc.keyForControls[i - g_NunchuckExt.Z])
|
||||||
KeyStatus[i] = true;
|
KeyStatus[i] = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case EXT_CLASSIC_CONTROLLER:
|
case EXT_CLASSIC_CONTROLLER:
|
||||||
for (i = g_ClassicContExt.A; i < g_ClassicContExt.LAST_CONSTANT; i++)
|
for (int i = g_ClassicContExt.A; i < g_ClassicContExt.LAST_CONSTANT; i++)
|
||||||
{
|
{
|
||||||
if (key == PadMapping[0].Cc.keyForControls[i - g_ClassicContExt.A])
|
if (key == PadMapping[0].Cc.keyForControls[i - g_ClassicContExt.A])
|
||||||
KeyStatus[i] = true;
|
KeyStatus[i] = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case EXT_GUITARHERO3_CONTROLLER:
|
case EXT_GUITARHERO3_CONTROLLER:
|
||||||
for (i = g_GH3Ext.Green; i < g_GH3Ext.LAST_CONSTANT; i++)
|
for (int i = g_GH3Ext.Green; i < g_GH3Ext.LAST_CONSTANT; i++)
|
||||||
{
|
{
|
||||||
if (key == PadMapping[0].GH3c.keyForControls[i - g_GH3Ext.Green])
|
if (key == PadMapping[0].GH3c.keyForControls[i - g_GH3Ext.Green])
|
||||||
KeyStatus[i] = true;
|
KeyStatus[i] = true;
|
||||||
|
@ -789,15 +784,14 @@ void readKeyboard()
|
||||||
{
|
{
|
||||||
key = XLookupKeysym((XKeyEvent*)&E, 0);
|
key = XLookupKeysym((XKeyEvent*)&E, 0);
|
||||||
|
|
||||||
if((key >= XK_F1 && key <= XK_F9) ||
|
if ((key >= XK_F1 && key <= XK_F9) ||
|
||||||
key == XK_Shift_L || key == XK_Shift_R ||
|
key == XK_Shift_L || key == XK_Shift_R ||
|
||||||
key == XK_Control_L || key == XK_Control_R) {
|
key == XK_Control_L || key == XK_Control_R) {
|
||||||
XPutBackEvent(WMdisplay, &E);
|
XPutBackEvent(WMdisplay, &E);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
int i;
|
for (int i = g_Wiimote_kbd.A; i < g_Wiimote_kbd.LAST_CONSTANT; i++)
|
||||||
for (i = g_Wiimote_kbd.A; i < g_Wiimote_kbd.LAST_CONSTANT; i++)
|
|
||||||
{
|
{
|
||||||
if (key == PadMapping[0].Wm.keyForControls[i - g_Wiimote_kbd.A])
|
if (key == PadMapping[0].Wm.keyForControls[i - g_Wiimote_kbd.A])
|
||||||
KeyStatus[i] = false;
|
KeyStatus[i] = false;
|
||||||
|
@ -805,21 +799,21 @@ void readKeyboard()
|
||||||
switch (g_Config.iExtensionConnected)
|
switch (g_Config.iExtensionConnected)
|
||||||
{
|
{
|
||||||
case EXT_NUNCHUCK:
|
case EXT_NUNCHUCK:
|
||||||
for (i = g_NunchuckExt.Z; i < g_NunchuckExt.LAST_CONSTANT; i++)
|
for (int i = g_NunchuckExt.Z; i < g_NunchuckExt.LAST_CONSTANT; i++)
|
||||||
{
|
{
|
||||||
if (key == PadMapping[0].Nc.keyForControls[i - g_NunchuckExt.Z])
|
if (key == PadMapping[0].Nc.keyForControls[i - g_NunchuckExt.Z])
|
||||||
KeyStatus[i] = false;
|
KeyStatus[i] = false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case EXT_CLASSIC_CONTROLLER:
|
case EXT_CLASSIC_CONTROLLER:
|
||||||
for (i = g_ClassicContExt.A; i < g_ClassicContExt.LAST_CONSTANT; i++)
|
for (int i = g_ClassicContExt.A; i < g_ClassicContExt.LAST_CONSTANT; i++)
|
||||||
{
|
{
|
||||||
if (key == PadMapping[0].Cc.keyForControls[i - g_ClassicContExt.A])
|
if (key == PadMapping[0].Cc.keyForControls[i - g_ClassicContExt.A])
|
||||||
KeyStatus[i] = false;
|
KeyStatus[i] = false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case EXT_GUITARHERO3_CONTROLLER:
|
case EXT_GUITARHERO3_CONTROLLER:
|
||||||
for (i = g_GH3Ext.Green; i < g_GH3Ext.LAST_CONSTANT; i++)
|
for (int i = g_GH3Ext.Green; i < g_GH3Ext.LAST_CONSTANT; i++)
|
||||||
{
|
{
|
||||||
if (key == PadMapping[0].GH3c.keyForControls[i - g_GH3Ext.Green])
|
if (key == PadMapping[0].GH3c.keyForControls[i - g_GH3Ext.Green])
|
||||||
KeyStatus[i] = false;
|
KeyStatus[i] = false;
|
||||||
|
|
Loading…
Reference in New Issue