Does screen joystick have a predefined set of buttons?
i ask so because i have deleted all the buttons and i see them on te screen.
i dont’t understand why
void InitTouchInput()
{
TouchEnabled = true;
var layout = ResourceCache.GetXmlFile(“UA/ScreenJoystick.xml”);
if (!string.IsNullOrEmpty(JoystickLayoutPatch))
{
XmlFile patchXmlFile = new XmlFile();
patchXmlFile.FromString(JoystickLayoutPatch);
layout.Patch(patchXmlFile);
}
var screenJoystickIndex = Input.AddScreenJoystick(layout, ResourceCache.GetXmlFile(“UI/DefaultStyle.xml”));
Input.SetScreenJoystickVisible(screenJoystickIndex, true);
}
WIth this configuration i see three buttons on the screen but if i substitute
var screenJoystickIndex = Input.AddScreenJoystick(layout, ResourceCache.GetXmlFile(“UI/DefaultStyle.xml”));
with
var screenJoystickIndex = Input.AddScreenJoystick(null, null); NOTHING changes.
CAN I PUT two buttons over the screen without using screenjoistick?
i am frustrated