/* opPanel.cpp * PCSX2 Dev Team * Copyright (C) 2015 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #include "opPanel.h" #include "ImgHeader/dualshock2.h" #include "ImgHeader/cross.h" #include "ImgHeader/circle.h" #include "ImgHeader/square.h" #include "ImgHeader/triangle.h" #include "ImgHeader/dp_left.h" #include "ImgHeader/dp_right.h" #include "ImgHeader/dp_up.h" #include "ImgHeader/dp_bottom.h" #include "ImgHeader/l1.h" #include "ImgHeader/r1.h" #include "ImgHeader/l2.h" #include "ImgHeader/l3.h" #include "ImgHeader/r2.h" #include "ImgHeader/r3.h" #include "ImgHeader/start.h" #include "ImgHeader/select.h" #include "ImgHeader/analog.h" #include "ImgHeader/joystick_cursor.h" #include "ImgHeader/arrow_up.h" #include "ImgHeader/arrow_right.h" #include "ImgHeader/arrow_bottom.h" #include "ImgHeader/arrow_left.h" opPanel::opPanel(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize ): wxPanel( parent, id, pos, size) { m_picture[img_background] = EmbeddedImage().Get(); m_picture[img_start] = EmbeddedImage().Get(); m_picture[img_select] = EmbeddedImage().Get(); m_picture[img_analog] = EmbeddedImage().Get(); m_picture[img_dp_left] = EmbeddedImage().Get(); m_picture[img_dp_right] = EmbeddedImage().Get(); m_picture[img_dp_up] = EmbeddedImage().Get(); m_picture[img_dp_bottom] = EmbeddedImage().Get(); m_picture[img_square] = EmbeddedImage().Get(); m_picture[img_circle] = EmbeddedImage().Get(); m_picture[img_cross] = EmbeddedImage().Get(); m_picture[img_triangle] = EmbeddedImage().Get(); m_picture[img_l1] = EmbeddedImage().Get(); m_picture[img_l3] = EmbeddedImage().Get(); m_picture[img_l2] = EmbeddedImage().Get(); m_picture[img_r1] = EmbeddedImage().Get(); m_picture[img_r3] = EmbeddedImage().Get(); m_picture[img_r2] = EmbeddedImage().Get(); m_picture[img_left_cursor] = EmbeddedImage().Get(); m_picture[img_right_cursor] = EmbeddedImage().Get(); m_picture[img_l_arrow_up] = EmbeddedImage().Get(); m_picture[img_l_arrow_right] = EmbeddedImage().Get(); m_picture[img_l_arrow_bottom] = EmbeddedImage().Get(); m_picture[img_l_arrow_left] = EmbeddedImage().Get(); m_picture[img_r_arrow_up] = EmbeddedImage().Get(); m_picture[img_r_arrow_right] = EmbeddedImage().Get(); m_picture[img_r_arrow_bottom] = EmbeddedImage().Get(); m_picture[img_r_arrow_left] = EmbeddedImage().Get(); for(int i=0; i