Skip to content

Commit 8c62132

Browse files
committed
Rebranding to KeyboardDisplay
1 parent 16da3cf commit 8c62132

20 files changed

+29
-21
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# TASagentStreamBot KezBoard
1+
# TASagentStreamBot KeyboardDisplay
22

33
Demonstrations of my extensible, modular C# [stream bot development framework](https://github.com/TASagent/TASagentTwitchBotCore) with rebinding midi input to keyboard output, and a keyboard input display.
44

55
## How do I use this?
66

77
Simply launch the executable. You can download the build program from the Releases.
88

9-
To build the project, get the appropriate [NetCore 6 SDK (With AspNet)](https://dotnet.microsoft.com/download/dotnet/6.0), navigate to the project directory `cd TASagentStreamBot.Kezcade/TASagentStreamBot.Kezcade`, and build the DotNet project: `dotnet publish -c Release -r win-x64`.
9+
To build the project, get the appropriate [NetCore 6 SDK (With AspNet)](https://dotnet.microsoft.com/download/dotnet/6.0), navigate to the project directory `cd TASagentStreamBot.KeyboardDisplay/TASagentStreamBot.KeyboardDisplay`, and build the DotNet project: `dotnet publish -c Release -r win-x64`.
1010

1111
## BrowserSources
1212

TASagentStreamBot.KezBoard.sln renamed to TASagentStreamBot.KeyboardDisplay.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.0.32112.339
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TASagentStreamBot.KezBoard", "TASagentStreamBot.KezBoard\TASagentStreamBot.KezBoard.csproj", "{4D0B41D4-6F6C-4AEB-AD33-8FE77839F163}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TASagentStreamBot.KeyboardDisplay", "TASagentStreamBot.KeyboardDisplay\TASagentStreamBot.KeyboardDisplay.csproj", "{4D0B41D4-6F6C-4AEB-AD33-8FE77839F163}"
77
EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "TASagentTwitchBotCore", "TASagentTwitchBotCore", "{343B5FF6-7D27-47EF-B1D0-3E2391C466F7}"
99
EndProject

TASagentStreamBot.KezBoard/Configurator.cs renamed to TASagentStreamBot.KeyboardDisplay/Configurator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace TASagentStreamBot.KezBoard;
1+
namespace TASagentStreamBot.KeyboardDisplay;
22

33
public class Configurator : TASagentTwitchBot.Core.BaseConfigurator
44
{

TASagentStreamBot.KezBoard/ControllerMidiBinding.cs renamed to TASagentStreamBot.KeyboardDisplay/ControllerMidiBinding.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using TASagentTwitchBot.Plugin.Audio.Midi;
44
using TASagentTwitchBot.Plugin.XInput;
55

6-
namespace TASagentStreamBot.KezBoard;
6+
namespace TASagentStreamBot.KeyboardDisplay;
77

88
public class ControllerMidiBinding : MidiKeyboardHandler.MidiBinding
99
{

TASagentStreamBot.KezBoard/KezboardView.cs renamed to TASagentStreamBot.KeyboardDisplay/KeyboardView.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
using TASagentTwitchBot.Plugin.Audio.Midi;
44
using TASagentTwitchBot.Plugin.XInput;
55

6-
namespace TASagentStreamBot.KezBoard;
6+
namespace TASagentStreamBot.KeyboardDisplay;
77

88
public interface IKeyPressListener
99
{
1010
void HandleKeyDown(int key);
1111
void HandleKeyUp(int key);
1212
}
1313

14-
public class KezBoardView : TASagentTwitchBot.Core.View.BasicView, IKeyPressListener
14+
public class KeyboardView : TASagentTwitchBot.Core.View.BasicView, IKeyPressListener
1515
{
1616
private readonly ControllerMidiBinding controllerMidiBinding;
1717
private readonly MidiBindingConfig midiBindingConfig;
@@ -22,7 +22,7 @@ public class KezBoardView : TASagentTwitchBot.Core.View.BasicView, IKeyPressList
2222
private List<string> midiDevices;
2323
private int? midiKey = null;
2424

25-
public KezBoardView(
25+
public KeyboardView(
2626
BotConfiguration botConfig,
2727
MidiBindingConfig midiBindingConfig,
2828
ICommunication communication,

TASagentStreamBot.KezBoard/MidiBindingConfig.cs renamed to TASagentStreamBot.KeyboardDisplay/MidiBindingConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Text.Json;
22
using TASagentTwitchBot.Plugin.XInput;
33

4-
namespace TASagentStreamBot.KezBoard;
4+
namespace TASagentStreamBot.KeyboardDisplay;
55

66
public class MidiBindingConfig
77
{

TASagentStreamBot.KezBoard/Program.cs renamed to TASagentStreamBot.KeyboardDisplay/Program.cs

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
using Microsoft.AspNetCore.HttpOverrides;
2-
using Microsoft.EntityFrameworkCore;
32

43
using TASagentTwitchBot.Core.Extensions;
54
using TASagentTwitchBot.Core.Web;
65
using TASagentTwitchBot.Plugin.Audio.Midi;
76

87
//Initialize DataManagement
9-
BGC.IO.DataManagement.Initialize("TASagentBotKezBoard");
8+
string oldPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "TASagentBotKezBoard");
9+
string newPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "TASagentBotKeyboardDisplay");
10+
11+
if (Directory.Exists(oldPath))
12+
{
13+
Directory.Move(oldPath, newPath);
14+
}
15+
16+
17+
BGC.IO.DataManagement.Initialize("TASagentBotKeyboardDisplay");
1018

1119
//
1220
// Define and register services
@@ -39,11 +47,11 @@
3947

4048
//Custom Core Systems
4149
builder.Services
42-
.AddTASSingleton<TASagentStreamBot.KezBoard.KezBoardView>();
50+
.AddTASSingleton<TASagentStreamBot.KeyboardDisplay.KeyboardView>();
4351

4452
//Custom Configurator
4553
builder.Services
46-
.AddTASSingleton<TASagentStreamBot.KezBoard.Configurator>();
54+
.AddTASSingleton<TASagentStreamBot.KeyboardDisplay.Configurator>();
4755

4856
//Core Audio System
4957
builder.Services
@@ -68,8 +76,8 @@
6876

6977
//Custom Midi Components
7078
builder.Services
71-
.AddTASSingleton(TASagentStreamBot.KezBoard.MidiBindingConfig.GetConfig())
72-
.AddTASSingleton<TASagentStreamBot.KezBoard.ControllerMidiBinding>();
79+
.AddTASSingleton(TASagentStreamBot.KeyboardDisplay.MidiBindingConfig.GetConfig())
80+
.AddTASSingleton<TASagentStreamBot.KeyboardDisplay.ControllerMidiBinding>();
7381

7482
//XInput Services
7583
builder.Services
@@ -115,7 +123,7 @@
115123

116124
//Core Control Page Hub
117125
app.MapHub<TASagentTwitchBot.Core.Web.Hubs.MonitorHub>("/Hubs/Monitor");
118-
app.MapHub<TASagentStreamBot.KezBoard.Web.Hubs.PianoDisplayHub>("/Hubs/PianoDisplay");
126+
app.MapHub<TASagentStreamBot.KeyboardDisplay.Web.Hubs.PianoDisplayHub>("/Hubs/PianoDisplay");
119127

120128
await app.StartAsync();
121129

@@ -151,8 +159,8 @@
151159
}
152160

153161

154-
TASagentStreamBot.KezBoard.ControllerMidiBinding midiBinding =
155-
app.Services.GetRequiredService<TASagentStreamBot.KezBoard.ControllerMidiBinding>();
162+
TASagentStreamBot.KeyboardDisplay.ControllerMidiBinding midiBinding =
163+
app.Services.GetRequiredService<TASagentStreamBot.KeyboardDisplay.ControllerMidiBinding>();
156164

157165
IMidiDeviceManager midiDeviceManager = app.Services.GetRequiredService<IMidiDeviceManager>();
158166
MidiKeyboardHandler midiKeyboardHandler = app.Services.GetRequiredService<MidiKeyboardHandler>();

TASagentStreamBot.KezBoard/Properties/launchSettings.json renamed to TASagentStreamBot.KeyboardDisplay/Properties/launchSettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
}
99
},
1010
"profiles": {
11-
"TASagentStreamBot.KezBoard": {
11+
"TASagentStreamBot.KeyboardDisplay": {
1212
"commandName": "Project",
1313
"dotnetRunMessages": true,
1414
"launchBrowser": false,

0 commit comments

Comments
 (0)