* Refactor * Apply suggestions from code review Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update src/Ryujinx/UI/Views/Settings/SettingsHotkeysView.axaml.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update src/Ryujinx.Input/ButtonValueType.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Add empty line * Requested renames * Update src/Ryujinx/UI/Views/Settings/SettingsHotkeysView.axaml.cs Co-authored-by: gdkchan <gab.dark.100@gmail.com> * Make parent models private readonly * Fix ControllerInputView * Make line shorter * Mac keys in locale * Double line break * Fix build * Get rid of _isValid * Fix potential race condition * Rename HasAnyButtonPressed to IsAnyButtonPressed * Use switches * Simplify enumeration --------- Co-authored-by: Ac_K <Acoustik666@gmail.com> Co-authored-by: gdkchan <gab.dark.100@gmail.com> Co-authored-by: TSR Berry <20988865+TSRBerry@users.noreply.github.com>
67 lines
3.0 KiB
XML
67 lines
3.0 KiB
XML
<UserControl
|
|
x:Class="Ryujinx.Ava.UI.Views.Settings.SettingsInputView"
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:locale="clr-namespace:Ryujinx.Ava.Common.Locale"
|
|
xmlns:views="clr-namespace:Ryujinx.Ava.UI.Views.Input"
|
|
xmlns:viewModels="clr-namespace:Ryujinx.Ava.UI.ViewModels"
|
|
mc:Ignorable="d"
|
|
x:DataType="viewModels:SettingsViewModel">
|
|
<Design.DataContext>
|
|
<viewModels:SettingsViewModel />
|
|
</Design.DataContext>
|
|
<ScrollViewer
|
|
Name="InputPage"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
HorizontalScrollBarVisibility="Disabled"
|
|
VerticalScrollBarVisibility="Auto">
|
|
<Border Classes="settings">
|
|
<Panel
|
|
Margin="10">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<views:InputView
|
|
Grid.Row="0"
|
|
Name="InputView" />
|
|
<StackPanel
|
|
Orientation="Vertical"
|
|
Grid.Row="2">
|
|
<Separator
|
|
Margin="0 10"
|
|
Height="1" />
|
|
<StackPanel
|
|
Orientation="Horizontal"
|
|
Spacing="10">
|
|
<CheckBox
|
|
ToolTip.Tip="{locale:Locale DockModeToggleTooltip}"
|
|
MinWidth="0"
|
|
IsChecked="{Binding EnableDockedMode}">
|
|
<TextBlock
|
|
Text="{locale:Locale SettingsTabInputEnableDockedMode}" />
|
|
</CheckBox>
|
|
<CheckBox
|
|
ToolTip.Tip="{locale:Locale DirectKeyboardTooltip}"
|
|
IsChecked="{Binding EnableKeyboard}">
|
|
<TextBlock
|
|
Text="{locale:Locale SettingsTabInputDirectKeyboardAccess}" />
|
|
</CheckBox>
|
|
<CheckBox
|
|
ToolTip.Tip="{locale:Locale DirectMouseTooltip}"
|
|
IsChecked="{Binding EnableMouse}">
|
|
<TextBlock
|
|
Text="{locale:Locale SettingsTabInputDirectMouseAccess}" />
|
|
</CheckBox>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Panel>
|
|
</Border>
|
|
</ScrollViewer>
|
|
</UserControl> |