-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
1,841 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/.vs | ||
*.suo | ||
*.user | ||
|
||
/bin | ||
/obj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
{ | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
Oops, something went wrong.