XP.Common类库的控件Controls功能,按照功能/用途分子文件夹,移动和修改虚拟摇杆相关的文件。

This commit is contained in:
QI Mingxuan
2026-05-15 16:06:26 +08:00
parent 07d76f5ab1
commit 346f4d9a9b
9 changed files with 10 additions and 1370 deletions
@@ -1,6 +1,6 @@
using System;
namespace XP.Common.Controls
namespace XP.Common.Controls.Joystick
{
/// <summary>
/// 虚拟摇杆核心计算逻辑(纯函数,无副作用)| Virtual joystick core calculation logic (pure functions, no side effects)
@@ -1,4 +1,4 @@
namespace XP.Common.Controls
namespace XP.Common.Controls.Joystick
{
/// <summary>
/// 虚拟摇杆轴模式枚举 | Virtual joystick axis mode enumeration
@@ -1,4 +1,4 @@
namespace XP.Common.Controls
namespace XP.Common.Controls.Joystick
{
/// <summary>
/// 鼠标按键类型枚举 | Mouse button type enumeration
@@ -6,7 +6,7 @@ using System.Windows.Media;
using System.Windows.Shapes;
using XP.Common.Logging.Interfaces;
namespace XP.Common.Controls
namespace XP.Common.Controls.Joystick
{
/// <summary>
/// 虚拟摇杆 UserControl,提供圆形区域内的鼠标拖拽操控能力 | Virtual joystick UserControl providing mouse drag interaction within a circular area
@@ -1,9 +1,9 @@
<UserControl x:Class="XP.Common.Controls.VirtualJoystick"
<UserControl x:Class="XP.Common.Controls.Joystick.VirtualJoystick"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
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:local="clr-namespace:XP.Common.Controls"
xmlns:local="clr-namespace:XP.Common.Controls.Joystick"
mc:Ignorable="d"
d:DesignWidth="200" d:DesignHeight="200"
Cursor="Hand">
File diff suppressed because it is too large Load Diff
@@ -4,7 +4,7 @@ using System.Windows;
using Prism.Commands;
using Prism.Events;
using Prism.Mvvm;
using XP.Common.Controls;
using XP.Common.Controls.Joystick;
using XP.Common.Logging.Interfaces;
using XP.Hardware.MotionControl.Abstractions;
using XP.Hardware.MotionControl.Abstractions.Enums;
@@ -6,7 +6,7 @@
xmlns:loc="clr-namespace:XP.Common.Localization.Extensions;assembly=XP.Common"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:prism="http://prismlibrary.com/"
xmlns:controls="clr-namespace:XP.Common.Controls;assembly=XP.Common"
xmlns:controls="clr-namespace:XP.Common.Controls.Joystick;assembly=XP.Common"
prism:ViewModelLocator.AutoWireViewModel="True"
mc:Ignorable="d"
MinWidth="350"
@@ -2,7 +2,7 @@ using System.ComponentModel;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using XP.Common.Controls;
using XP.Common.Controls.Joystick;
using XP.Hardware.MotionControl.ViewModels;
namespace XP.Hardware.MotionControl.Views