Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #795 from ChuckRozhon/correct_pointer_style_tasinp…
…utdlg

Placed ampersands and asterisks against type name
  • Loading branch information
lioncash committed Aug 15, 2014
2 parents 46491ee + 2d92096 commit f6dd2ff
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
28 changes: 14 additions & 14 deletions Source/Core/DolphinWX/TASInputDlg.cpp
Expand Up @@ -46,8 +46,8 @@ EVT_CLOSE(TASInputDlg::OnCloseWindow)

END_EVENT_TABLE()

TASInputDlg::TASInputDlg(wxWindow *parent, wxWindowID id, const wxString &title,
const wxPoint &position, const wxSize& size, long style)
TASInputDlg::TASInputDlg(wxWindow* parent, wxWindowID id, const wxString& title,
const wxPoint& position, const wxSize& size, long style)
: wxDialog(parent, id, title, position, size, style)
{
A_turbo = B_turbo = X_turbo = Y_turbo = Z_turbo = L_turbo = R_turbo = START_turbo = DL_turbo = DR_turbo = DD_turbo = DU_turbo = false;
Expand Down Expand Up @@ -564,37 +564,37 @@ void TASInputDlg::GetValues(GCPadStatus* PadStatus, int controllerID)

void TASInputDlg::UpdateFromSliders(wxCommandEvent& event)
{
wxTextCtrl *text;
u8 *v;
wxTextCtrl* text;
u8* v;
update = 0;

switch (event.GetId())
{
case ID_MAIN_X_SLIDER:
text = wx_mainX_t;
v = &mainX;
xaxis =((wxSlider *) event.GetEventObject())->GetValue();
xaxis =((wxSlider*) event.GetEventObject())->GetValue();
update = 1;
break;

case ID_MAIN_Y_SLIDER:
text = wx_mainY_t;
v = &mainY;
yaxis = 256 - ((wxSlider *) event.GetEventObject())->GetValue();
yaxis = 256 - ((wxSlider*) event.GetEventObject())->GetValue();
update = 1;
break;

case ID_C_X_SLIDER:
text = wx_cX_t;
v = &cX;
c_xaxis = ((wxSlider *) event.GetEventObject())->GetValue();
c_xaxis = ((wxSlider*) event.GetEventObject())->GetValue();
update = 2;
break;

case ID_C_Y_SLIDER:
text = wx_cY_t;
v = &cY;
c_yaxis = 256 -((wxSlider *) event.GetEventObject())->GetValue();
c_yaxis = 256 -((wxSlider*) event.GetEventObject())->GetValue();
update = 2;
break;

Expand All @@ -612,7 +612,7 @@ void TASInputDlg::UpdateFromSliders(wxCommandEvent& event)
return;
}

int value = ((wxSlider *) event.GetEventObject())->GetValue();
int value = ((wxSlider*) event.GetEventObject())->GetValue();
*v = (u8) value;
text->SetValue(wxString::Format("%i", value));

Expand All @@ -629,8 +629,8 @@ void TASInputDlg::UpdateFromSliders(wxCommandEvent& event)

void TASInputDlg::UpdateFromText(wxCommandEvent& event)
{
wxSlider *slider;
u8 *v;
wxSlider* slider;
u8* v;
update = 0;
update_axis = 0;

Expand Down Expand Up @@ -679,7 +679,7 @@ void TASInputDlg::UpdateFromText(wxCommandEvent& event)
}
unsigned long value;

if (((wxTextCtrl *) event.GetEventObject())->GetValue().ToULong(&value))
if (((wxTextCtrl*) event.GetEventObject())->GetValue().ToULong(&value))
{
*v = (u8) (value > 255 ? 255 : value);
slider->SetValue(*v);
Expand Down Expand Up @@ -766,7 +766,7 @@ bool TASInputDlg::TextBoxHasFocus()
void TASInputDlg::OnMouseUpR(wxMouseEvent& event)
{
wxSlider *sliderX,*sliderY;
wxStaticBitmap *sbitmap;
wxStaticBitmap* sbitmap;
wxTextCtrl *textX, *textY;
int *x,*y;

Expand Down Expand Up @@ -815,7 +815,7 @@ void TASInputDlg::OnMouseDownL(wxMouseEvent& event)
return;

wxSlider *sliderX,*sliderY;
wxStaticBitmap *sbitmap;
wxStaticBitmap* sbitmap;
wxTextCtrl *textX, *textY;
int *x,*y;

Expand Down
6 changes: 3 additions & 3 deletions Source/Core/DolphinWX/TASInputDlg.h
Expand Up @@ -26,9 +26,9 @@ class wxWindow;
class TASInputDlg : public wxDialog
{
public:
TASInputDlg(wxWindow *parent,
TASInputDlg(wxWindow* parent,
wxWindowID id = 1,
const wxString &title = _("TAS Input"),
const wxString& title = _("TAS Input"),
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_DIALOG_STYLE | wxSTAY_ON_TOP);
Expand Down Expand Up @@ -88,7 +88,7 @@ class TASInputDlg : public wxDialog
wxCheckBox *wx_up_button, *wx_down_button, *wx_left_button, *wx_right_button, *wx_a_button, *wx_b_button, *wx_x_button, *wx_y_button, *wx_l_button, *wx_r_button, *wx_z_button, *wx_start_button;
wxTextCtrl *wx_mainX_t, *wx_mainY_t, *wx_cX_t, *wx_cY_t, *wx_l_t, *wx_r_t;
wxMemoryDC dc_main, dc_c;
wxStaticBitmap* static_bitmap_main, *static_bitmap_c;
wxStaticBitmap *static_bitmap_main, *static_bitmap_c;
wxBitmap bitmap;
bool A_turbo,B_turbo, X_turbo, Y_turbo, Z_turbo, L_turbo, R_turbo, START_turbo,DL_turbo,DR_turbo,DD_turbo,DU_turbo;
bool A_cont,B_cont, X_cont, Y_cont, Z_cont, L_cont, L_button_cont, R_cont, R_button_cont, START_cont,DL_cont,DR_cont,DD_cont,DU_cont,mstickx,msticky,cstickx,csticky;
Expand Down

0 comments on commit f6dd2ff

Please sign in to comment.