mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
(RMenu XUI) Use m_controlnoslider directly
This commit is contained in:
parent
c1f6f097df
commit
44661638b6
@ -187,7 +187,7 @@ class CRetroArchControls: public CXuiSceneImpl
|
|||||||
protected:
|
protected:
|
||||||
HXUIOBJ m_controlslist;
|
HXUIOBJ m_controlslist;
|
||||||
CXuiControl m_back;
|
CXuiControl m_back;
|
||||||
CXuiSlider m_controlnoslider;
|
HXUIOBJ m_controlnoslider;
|
||||||
public:
|
public:
|
||||||
HRESULT OnInit( XUIMessageInit* pInitData, int & bHandled );
|
HRESULT OnInit( XUIMessageInit* pInitData, int & bHandled );
|
||||||
HRESULT OnNotifyPress( HXUIOBJ hObjPressed, int & bHandled );
|
HRESULT OnNotifyPress( HXUIOBJ hObjPressed, int & bHandled );
|
||||||
@ -441,8 +441,8 @@ HRESULT CRetroArchControls::OnInit(XUIMessageInit * pInitData, BOOL& bHandled)
|
|||||||
GetChildById(L"XuiBackButton", &m_back);
|
GetChildById(L"XuiBackButton", &m_back);
|
||||||
GetChildById(L"XuiControlNoSlider", &m_controlnoslider);
|
GetChildById(L"XuiControlNoSlider", &m_controlnoslider);
|
||||||
|
|
||||||
m_controlnoslider.SetValue(0);
|
XuiSliderSetValue(m_controlnoslider, 0);
|
||||||
m_controlnoslider.GetValue(&controlno);
|
XuiSliderGetValue(m_controlnoslider, &controlno);
|
||||||
|
|
||||||
for(i = 0; i < RARCH_FIRST_META_KEY; i++)
|
for(i = 0; i < RARCH_FIRST_META_KEY; i++)
|
||||||
{
|
{
|
||||||
@ -475,7 +475,7 @@ HRESULT CRetroArchControls::OnControlNavigate(
|
|||||||
int controlno, i, current_index;
|
int controlno, i, current_index;
|
||||||
|
|
||||||
current_index = XuiListGetCurSel(m_controlslist, NULL);
|
current_index = XuiListGetCurSel(m_controlslist, NULL);
|
||||||
m_controlnoslider.GetValue(&controlno);
|
XuiSliderGetValue(m_controlnoslider, &controlno);
|
||||||
|
|
||||||
for(i = 0; i < RARCH_FIRST_META_KEY; i++)
|
for(i = 0; i < RARCH_FIRST_META_KEY; i++)
|
||||||
{
|
{
|
||||||
@ -608,7 +608,7 @@ HRESULT CRetroArchControls::OnNotifyPress( HXUIOBJ hObjPressed, int & bHandled
|
|||||||
{
|
{
|
||||||
int current_index, i, controlno;
|
int current_index, i, controlno;
|
||||||
char buttons[RARCH_FIRST_META_KEY][128];
|
char buttons[RARCH_FIRST_META_KEY][128];
|
||||||
m_controlnoslider.GetValue(&controlno);
|
XuiSliderGetValue(m_controlnoslider, &controlno);
|
||||||
process_input_ret = 0;
|
process_input_ret = 0;
|
||||||
|
|
||||||
if ( hObjPressed == m_controlslist)
|
if ( hObjPressed == m_controlslist)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user