2015-10-17 16:57:28 +00:00
|
|
|
/* opPanel.h
|
2015-10-27 19:07:41 +00:00
|
|
|
* PCSX2 Dev Team
|
2015-10-17 16:57:28 +00:00
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#ifndef __OPPANEL_H__
|
|
|
|
#define __OPPANEL_H__
|
|
|
|
|
|
|
|
#include <wx/wx.h>
|
|
|
|
|
|
|
|
#include "EmbeddedImage.h"
|
|
|
|
|
|
|
|
enum gui_img {
|
|
|
|
img_l2,
|
|
|
|
img_r2,
|
|
|
|
img_l1,
|
|
|
|
img_r1,
|
|
|
|
img_triangle,
|
|
|
|
img_circle,
|
|
|
|
img_cross,
|
|
|
|
img_square,
|
|
|
|
img_select,
|
|
|
|
img_l3,
|
|
|
|
img_r3,
|
|
|
|
img_start,
|
|
|
|
img_dp_up,
|
|
|
|
img_dp_right,
|
|
|
|
img_dp_bottom,
|
|
|
|
img_dp_left,
|
|
|
|
img_left_cursor,
|
|
|
|
img_right_cursor,
|
|
|
|
img_analog,
|
2016-09-04 12:10:02 +00:00
|
|
|
img_background, // background pic
|
2015-10-27 19:07:41 +00:00
|
|
|
img_l_arrow_up,
|
|
|
|
img_l_arrow_right,
|
|
|
|
img_l_arrow_bottom,
|
|
|
|
img_l_arrow_left,
|
|
|
|
img_r_arrow_up,
|
|
|
|
img_r_arrow_right,
|
|
|
|
img_r_arrow_bottom,
|
|
|
|
img_r_arrow_left
|
2015-10-17 16:57:28 +00:00
|
|
|
};
|
|
|
|
|
2015-10-27 19:07:41 +00:00
|
|
|
#define NB_IMG 28
|
2015-10-17 16:57:28 +00:00
|
|
|
|
|
|
|
class opPanel : public wxPanel
|
|
|
|
{
|
2015-10-27 19:07:41 +00:00
|
|
|
wxBitmap m_picture[NB_IMG];
|
|
|
|
bool m_show_image[NB_IMG];
|
|
|
|
int m_left_cursor_x, m_left_cursor_y, m_right_cursor_x, m_right_cursor_y;
|
2015-10-17 16:57:28 +00:00
|
|
|
DECLARE_EVENT_TABLE()
|
2016-09-04 12:10:02 +00:00
|
|
|
void OnPaint(wxPaintEvent &event);
|
2015-10-17 16:57:28 +00:00
|
|
|
|
|
|
|
public:
|
2016-09-04 12:10:02 +00:00
|
|
|
opPanel(wxWindow *, wxWindowID, const wxPoint &, const wxSize &);
|
2015-10-17 16:57:28 +00:00
|
|
|
void HideImg(int);
|
|
|
|
void ShowImg(int);
|
|
|
|
void MoveJoystick(int, int);
|
|
|
|
};
|
|
|
|
|
2016-09-04 12:10:02 +00:00
|
|
|
#endif // __OPPANEL_H__
|