Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Zergatul committed May 26, 2021
1 parent 68e498c commit 0adcc8e
Show file tree
Hide file tree
Showing 21 changed files with 1,841 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/.vs
*.suo
*.user

/bin
/obj
67 changes: 67 additions & 0 deletions Button.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
namespace Zergatul.Obs.InputOverlay
{
public enum Button
{
None,

Esc,
F1,
F2,
F3,
F4,

Tilde,
Num1,
Num2,
Num3,
Num4,
Num5,
Num6,
Num7,
Num8,
Num9,
Num0,

Tab,
KeyQ,
KeyW,
KeyE,
KeyR,
KeyT,
KeyY,
KeyU,
KeyI,
KeyO,
KeyP,

Caps,
KeyA,
KeyS,
KeyD,
KeyF,
KeyG,
KeyH,
KeyJ,
KeyK,
KeyL,

Shift,
KeyZ,
KeyX,
KeyC,
KeyV,
KeyB,
KeyN,
KeyM,

Ctrl,
Alt,
Space,

Mouse1,
Mouse2,
Mouse3,
Mouse4,
Mouse5
}
}
14 changes: 14 additions & 0 deletions EmptyInputHook.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;

namespace Zergatul.Obs.InputOverlay
{
public class EmptyInputHook : IInputHook
{
public event EventHandler<ButtonEvent> ButtonAction;

public void Dispose()
{

}
}
}
9 changes: 9 additions & 0 deletions IInputHook.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using System;

namespace Zergatul.Obs.InputOverlay
{
public interface IInputHook : IDisposable
{
event EventHandler<ButtonEvent> ButtonAction;
}
}
11 changes: 11 additions & 0 deletions IWebSocketHandler.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System;
using System.Net.WebSockets;
using System.Threading.Tasks;

namespace Zergatul.Obs.InputOverlay
{
public interface IWebSocketHandler : IDisposable
{
Task HandleWebSocket(WebSocket ws);
}
}
Loading

0 comments on commit 0adcc8e

Please sign in to comment.