|
1 周之前 | |
---|---|---|
.. | ||
.vscode | 1 周之前 | |
Core | 1 周之前 | |
Platforms | 1 周之前 | |
InputReporter.sln | 1 周之前 | |
README.md | 1 周之前 |
A MonoGame 3.8.4 sample project that displays live input values for all connected game controllers. This project demonstrates how to handle gamepad input, display controller capabilities, and provide an interactive interface for testing controller features.
This project has been modernized to use .NET 8.0 SDK-style projects with MonoGame 3.8.4 NuGet packages:
InputReporter.Windows.csproj
- Windows DirectX version (net8.0-windows)InputReporter.DesktopGL.csproj
- Cross-platform OpenGL version (net8.0)InputReporter.Android.csproj
- Android version (net8.0-android)Due to .NET SDK limitations with multi-targeting across different platforms, separate solution files are provided:
InputReporter.sln
- Main solution with DesktopGL (cross-platform)InputReporter.Windows.sln
- Windows-specific solutionInputReporter.Android.sln
- Android-specific solutiondotnet workload install android
)dotnet build InputReporter.sln
# Windows
dotnet build InputReporter.Windows.sln
# DesktopGL (Cross-platform)
dotnet build InputReporter.sln
# Android
dotnet build InputReporter.Android.sln
# Windows
dotnet build InputReporter.Windows.csproj
# DesktopGL
dotnet build InputReporter.DesktopGL.csproj
# Android
dotnet build InputReporter.Android.csproj
dotnet run --project InputReporter.DesktopGL.csproj
dotnet run --project InputReporter.Windows.csproj
Deploy to device or emulator using Visual Studio or command line tools:
dotnet build InputReporter.Android.csproj -t:Run
This project includes VS Code configuration for building and debugging:
Ctrl+Shift+P
and run "Tasks: Run Task"build-desktopgl
- Build cross-platform versionbuild-windows
- Build Windows versionbuild-android
- Build Android versionrun-desktopgl
- Run cross-platform versionrun-windows
- Run Windows versionOpen the appropriate solution file in Visual Studio:
InputReporter.sln
for cross-platform developmentInputReporter.Windows.sln
for Windows-specific developmentInputReporter.Android.sln
for Android developmentThe project uses pre-built XNB content files located in the Content
folder. No Content Pipeline build step is required as the project has been configured to use existing compiled assets.
This project has been updated from the original MonoGame sample to use:
This sample is provided as-is for educational and reference purposes.