the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 38 lines 745 B view raw
1#include "stdafx.h" 2#include "UI.h" 3#include "UIControl_Touch.h" 4 5UIControl_Touch::UIControl_Touch() 6{ 7} 8 9bool UIControl_Touch::setupControl(UIScene *scene, IggyValuePath *parent, const string &controlName) 10{ 11 UIControl::setControlType(UIControl::eTouchControl); 12 bool success = UIControl_Base::setupControl(scene,parent,controlName); 13 14 return success; 15} 16 17void UIControl_Touch::init(int iId) 18{ 19 m_id = iId; 20 21 // 4J-TomK - add this touch control to the vita touch box list 22 switch(m_parentScene->GetParentLayer()->m_iLayer) 23 { 24 case eUILayer_Error: 25 case eUILayer_Fullscreen: 26 case eUILayer_Scene: 27 case eUILayer_HUD: 28 ui.TouchBoxAdd(this,m_parentScene); 29 break; 30 } 31} 32 33void UIControl_Touch::ReInit() 34{ 35 UIControl_Base::ReInit(); 36 37 init(m_id); 38}