Problem with Textbox responding to Gamepad input
Hi
I'm having a problem trying to get a Textbox to respond when the "A" button is pressed on my Gamepad/Controller.
Pressing the Enter key (which has the same callback) works as expected.
My XAML code is as follows
Something worth mentioning is that it does respond to the "A" button when the Root Grid element is in focus but not when the textbox is in focus after changing the text.
I'm having a problem trying to get a Textbox to respond when the "A" button is pressed on my Gamepad/Controller.
Pressing the Enter key (which has the same callback) works as expected.
My XAML code is as follows
Code: Select all
<TextBox x:Name="firstNameTextbox" HorizontalAlignment="Left" Height="41" TextWrapping="Wrap" Text="{Binding PlayerFirstName}" VerticalAlignment="Top" Width="652.485" BorderBrush="White" FontSize="20" FontFamily="/Workspace;component/Fonts/#Cooper Hewitt" Canvas.Top="79" Canvas.Left="89.167">
<i:Interaction.Triggers>
<noesis:GamepadTrigger FiredOn="ButtonDown" Button="Accept">
<i:InvokeCommandAction Command="{Binding CloseNamePopupCommand}" />
</noesis:GamepadTrigger>
</i:Interaction.Triggers>
<TextBox.InputBindings>
<KeyBinding Key="Esc" Command="{Binding BackCommand}"/>
<KeyBinding Key="Enter" Command="{Binding CloseNamePopupCommand}"/>
</TextBox.InputBindings>
</TextBox>
-
-
sfernandez
Site Admin
- Posts: 2062
- Joined:
Re: Problem with Textbox responding to Gamepad input
Hi,
I found a couple of bugs related to this, first the TextBox was incorrectly setting the KeyDown event as handled when Gamepad_Accept was pressed while writing. And GamepadTrigger was comparing against the incorrect key to determine if trigger actions should be invoked.
I'll fix it for the next release.
Sorry for the inconveniences.
I found a couple of bugs related to this, first the TextBox was incorrectly setting the KeyDown event as handled when Gamepad_Accept was pressed while writing. And GamepadTrigger was comparing against the incorrect key to determine if trigger actions should be invoked.
I'll fix it for the next release.
Sorry for the inconveniences.
Re: Problem with Textbox responding to Gamepad input
Thanks. Much appreciated.
Do you have any idea when the next release will be?
Do you have any idea when the next release will be?
Re: Problem with Textbox responding to Gamepad input
We already solved this issue in the 3.0 branch but as you have access to the source code we could also apply this to 2.0 (for now we don't plan to release an official new 2.0). Could you open a ticket about this? Thanks!
Who is online
Users browsing this forum: Google [Bot] and 0 guests