I just got a big box full of GHI toys, and I thought I’d start by getting the touchscreen working on a FEZ Hydra.
Although the display works flawlessly, the touch panel doesn’t seem to do anything?
I created this XML file:
<Glide Version="1.0.4">
<Window Name="window" Width="320" Height="240" BackColor="dce3e7">
<TextBox Name="textBox" X="85" Y="104" Width="150" Height="32" Alpha="255" Text="" TextAlign="Left" Font="4" FontColor="000000"/>
</Window>
</Glide>
And wrote this code:
public partial class Program
{
Window window = new Window();
TextBox text;
void ProgramStarted()
{
Glide.FitToScreen = true;
window = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.window));
Glide.MainWindow = window;
text = (TextBox)window.GetChildByName("textBox");
text.TapEvent += new OnTap(text_TapEvent);
Thread.Sleep(Timeout.Infinite);
}
void text_TapEvent(object sender)
{
text.Text = "Yo.";
}
}
However, the tapEvent never fires (the text doesn’t update, and if I set a breakpoint, it never hits it).
Any suggestions?