-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathHIDGamepadConfig.xaml
130 lines (106 loc) · 8.72 KB
/
HIDGamepadConfig.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<Page
x:Class="VBA10.HIDGamepadConfig"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:VBA10"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignWidth="700"
d:DesignHeight="500">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel Background="{ThemeResource ListBoxBorderThemeBrush}"
VerticalAlignment="Stretch"
Orientation="Horizontal" >
<TextBlock Text="**HID Gamepad Config"
Style="{ThemeResource TitleTextBlockStyle}"
Margin="12,4,0,4"
x:Uid="HIDGamepadConfig"
x:Name="txtTitle"
/>
</StackPanel>
<ScrollViewer HorizontalScrollBarVisibility="Disabled"
VerticalScrollBarVisibility="Auto"
Grid.Row="1"
>
<StackPanel MaxWidth="500"
HorizontalAlignment="Left">
<TextBlock x:Name="txtNotification" Text="txtNotification - see cpp"
Margin="12,8,0,0"
Visibility="Visible"
TextWrapping="Wrap"
/>
<Grid Margin="12,0,12,0"
x:Name="gridMain"
Visibility="Collapsed" >
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*" />
<ColumnDefinition Width="4*" />
<ColumnDefinition Width="8" />
<ColumnDefinition Width="4*" />
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" Text="**Left" x:Uid="Left" VerticalAlignment="Center" Margin="0,12,0,4" />
<TextBox Grid.Row="0" Grid.Column="1" x:Name="txtLeft1" Tag="Left1" GotFocus="txtLeft1_GotFocus" LostFocus="txtLeft1_LostFocus" IsReadOnly="True" Margin="0,12,0,4"/>
<TextBox Grid.Row="0" Grid.Column="3" x:Name="txtLeft2" Tag="Left2" GotFocus="txtLeft1_GotFocus" LostFocus="txtLeft1_LostFocus" IsReadOnly="True" Margin="0,12,0,4" />
<TextBlock Grid.Row="1" Grid.Column="0" Text="Right" x:Uid="Right" VerticalAlignment="Center" Margin="0,12,0,4" />
<TextBox Grid.Row="1" Grid.Column="1" x:Name="txtRight1" Tag="Right1" GotFocus="txtLeft1_GotFocus" LostFocus="txtLeft1_LostFocus" IsReadOnly="True" Margin="0,12,0,4"/>
<TextBox Grid.Row="1" Grid.Column="3" x:Name="txtRight2" Tag="Right2" GotFocus="txtLeft1_GotFocus" LostFocus="txtLeft1_LostFocus" IsReadOnly="True" Margin="0,12,0,4" />
<TextBlock Grid.Row="2" Grid.Column="0" Text="Up" x:Uid="Up" VerticalAlignment="Center" Margin="0,12,0,4" />
<TextBox Grid.Row="2" Grid.Column="1" x:Name="txtUp1" Tag="Up1" GotFocus="txtLeft1_GotFocus" LostFocus="txtLeft1_LostFocus" IsReadOnly="True" Margin="0,12,0,4"/>
<TextBox Grid.Row="2" Grid.Column="3" x:Name="txtUp2" Tag="Up2" GotFocus="txtLeft1_GotFocus" LostFocus="txtLeft1_LostFocus" IsReadOnly="True" Margin="0,12,0,4" />
<TextBlock Grid.Row="3" Grid.Column="0" Text="Down" x:Uid="Down" VerticalAlignment="Center" Margin="0,12,0,4" />
<TextBox Grid.Row="3" Grid.Column="1" x:Name="txtDown1" Tag="Down1" GotFocus="txtLeft1_GotFocus" LostFocus="txtLeft1_LostFocus" IsReadOnly="True" Margin="0,12,0,4"/>
<TextBox Grid.Row="3" Grid.Column="3" x:Name="txtDown2" Tag="Down2" GotFocus="txtLeft1_GotFocus" LostFocus="txtLeft1_LostFocus" IsReadOnly="True" Margin="0,12,0,4" />
<TextBlock Grid.Row="4" Grid.Column="0" Text="A" VerticalAlignment="Center" Margin="0,12,0,4" />
<TextBox Grid.Row="4" Grid.Column="1" x:Name="txtA1" Tag="A1" GotFocus="txtLeft1_GotFocus" LostFocus="txtLeft1_LostFocus" IsReadOnly="True" Margin="0,12,0,4"/>
<TextBox Grid.Row="4" Grid.Column="3" x:Name="txtA2" Tag="A2" GotFocus="txtLeft1_GotFocus" LostFocus="txtLeft1_LostFocus" IsReadOnly="True" Margin="0,12,0,4" />
<TextBlock Grid.Row="5" Grid.Column="0" Text="B" VerticalAlignment="Center" Margin="0,12,0,4" />
<TextBox Grid.Row="5" Grid.Column="1" x:Name="txtB1" Tag="B1" GotFocus="txtLeft1_GotFocus" LostFocus="txtLeft1_LostFocus" IsReadOnly="True" Margin="0,12,0,4"/>
<TextBox Grid.Row="5" Grid.Column="3" x:Name="txtB2" Tag="B2" GotFocus="txtLeft1_GotFocus" LostFocus="txtLeft1_LostFocus" IsReadOnly="True" Margin="0,12,0,4" />
<TextBlock Grid.Row="6" Grid.Column="0" Text="L" VerticalAlignment="Center" Margin="0,12,0,4" />
<TextBox Grid.Row="6" Grid.Column="1" x:Name="txtL1" Tag="L1" GotFocus="txtLeft1_GotFocus" LostFocus="txtLeft1_LostFocus" IsReadOnly="True" Margin="0,12,0,4"/>
<TextBox Grid.Row="6" Grid.Column="3" x:Name="txtL2" Tag="L2" GotFocus="txtLeft1_GotFocus" LostFocus="txtLeft1_LostFocus" IsReadOnly="True" Margin="0,12,0,4" />
<TextBlock Grid.Row="7" Grid.Column="0" Text="R" VerticalAlignment="Center" Margin="0,12,0,4" />
<TextBox Grid.Row="7" Grid.Column="1" x:Name="txtR1" Tag="R1" GotFocus="txtLeft1_GotFocus" LostFocus="txtLeft1_LostFocus" IsReadOnly="True" Margin="0,12,0,4"/>
<TextBox Grid.Row="7" Grid.Column="3" x:Name="txtR2" Tag="R2" GotFocus="txtLeft1_GotFocus" LostFocus="txtLeft1_LostFocus" IsReadOnly="True" Margin="0,12,0,4" />
<TextBlock Grid.Row="8" Grid.Column="0" Text="Start" x:Uid="Start" VerticalAlignment="Center" Margin="0,12,0,4" />
<TextBox Grid.Row="8" Grid.Column="1" x:Name="txtStart1" Tag="Start1" GotFocus="txtLeft1_GotFocus" LostFocus="txtLeft1_LostFocus" IsReadOnly="True" Margin="0,12,0,4"/>
<TextBox Grid.Row="8" Grid.Column="3" x:Name="txtStart2" Tag="Start2" GotFocus="txtLeft1_GotFocus" LostFocus="txtLeft1_LostFocus" IsReadOnly="True" Margin="0,12,0,4" />
<TextBlock Grid.Row="9" Grid.Column="0" Text="Select" x:Uid="Select" VerticalAlignment="Center" Margin="0,12,0,4" />
<TextBox Grid.Row="9" Grid.Column="1" x:Name="txtSelect1" Tag="Select1" GotFocus="txtLeft1_GotFocus" LostFocus="txtLeft1_LostFocus" IsReadOnly="True" Margin="0,12,0,4"/>
<TextBox Grid.Row="9" Grid.Column="3" x:Name="txtSelect2" Tag="Select2" GotFocus="txtLeft1_GotFocus" LostFocus="txtLeft1_LostFocus" IsReadOnly="True" Margin="0,12,0,4" />
<TextBlock Grid.Row="10" Grid.Column="0" Text="**Turbo" x:Uid="Turbo" VerticalAlignment="Center" Margin="0,12,0,4" />
<TextBox Grid.Row="10" Grid.Column="1" x:Name="txtTurbo1" Tag="Turbo1" GotFocus="txtLeft1_GotFocus" LostFocus="txtLeft1_LostFocus" IsReadOnly="True" Margin="0,12,0,4"/>
<TextBox Grid.Row="10" Grid.Column="3" x:Name="txtTurbo2" Tag="Turbo2" GotFocus="txtLeft1_GotFocus" LostFocus="txtLeft1_LostFocus" IsReadOnly="True" Margin="0,12,0,4" />
</Grid>
</StackPanel>
</ScrollViewer>
<Button Content="Close" Grid.Row="3"
Width="120"
HorizontalAlignment="Center"
Margin="0,8,0,4"
x:Name="closeBtn"
Click="closeBtn_Click"/>
</Grid>
</Page>