Skip to content

Commit

Permalink
Improved preview and Expanded on Mouse controls
Browse files Browse the repository at this point in the history
This update was more of a aesthetics rather than functionality, although
the added joystick preview will allow debugging mouse movement when
later trying to implement a better mouse translation to joysticks.

Added
+ Controller Axis Preview on Controller Preview
+ Relative Mouse stick controls
+ Added final modifier to mouse control (More precise movements)
+ Fixed build bat not building 32bit files

Changes:
+ Moved around classes in folder
+ Renamed the create downloads bat to "build.bat"
+ serveral un-named.
  • Loading branch information
CallumCarmicheal committed Feb 10, 2017
1 parent 57573b2 commit e4b8b55
Show file tree
Hide file tree
Showing 32 changed files with 624 additions and 426 deletions.
Binary file added Images/XboxKeyboardMouse_Oct_02_2017_Overall.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Keyboard and mouse for Xbox One streaming to Windows 10.

It sends keyboard and mouse inputs to an emulated Xbox controller using SCP driver.

![Screenshot](http://callumcarmicheal.com/projects/XKM_13_12_16.PNG "Image of the GUI as of 11/12/16")
![Screenshot](http://callumcarmicheal.com/projects/XKM_Oct_02_2017.PNG "Image of the GUI as of 11/12/16")

#Prereq
1. You need SCPToolkit driver installed to use
Expand Down
4 changes: 0 additions & 4 deletions XboxKeyboardMouse/ClassDiagram1.cd

This file was deleted.

18 changes: 12 additions & 6 deletions XboxKeyboardMouse/Config/Data.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ public class Data {
public int Mouse_Eng_Type = 0;

public int Mouse_Eng_Relative_Val = 1639;

public double Mouse_FinalMod = 10;
// <-- Mouse

// --> Xbox Controls Keyboard
Expand Down Expand Up @@ -130,14 +132,16 @@ public static Data Load(string file) {
Read(f, "Config", "Name", ref d.Name);

/* Mouse Settings */ {
Read(f, "Mouse", "X_Sensitivity", ref d.Mouse_Sensitivity_X);
Read(f, "Mouse", "Y_Sensitivity", ref d.Mouse_Sensitivity_Y);
Read(f, "Mouse", "X_Sensitivity", ref d.Mouse_Sensitivity_X);
Read(f, "Mouse", "Y_Sensitivity", ref d.Mouse_Sensitivity_Y);

Read(f, "Mouse", "X_Inverted", ref d.Mouse_Invert_X);
Read(f, "Mouse", "Y_Inverted", ref d.Mouse_Invert_Y);

Read(f, "Mouse", "X_Inverted", ref d.Mouse_Invert_X);
Read(f, "Mouse", "Y_Inverted", ref d.Mouse_Invert_Y);
Read(f, "Mouse", "Type", ref d.Mouse_Eng_Type);
Read(f, "Mouse", "ERel_Val", ref d.Mouse_Eng_Relative_Val);

Read(f, "Mouse", "Type", ref d.Mouse_Eng_Type);
Read(f, "Mouse", "ERel_Val", ref d.Mouse_Eng_Relative_Val);
Read(f, "Mouse", "Final_Modifier", ref d.Mouse_FinalMod);
}

/* Controls - Keyboard */ {
Expand Down Expand Up @@ -228,6 +232,8 @@ public static void Save(string file, Data d) {
Write(f, "Mouse", "Y_Inverted", d.Mouse_Invert_Y);
Write(f, "Mouse", "Type", d.Mouse_Eng_Type);
Write(f, "Mouse", "ERel_Val", d.Mouse_Eng_Relative_Val);

Write(f, "Mouse", "Final_Modifier", d.Mouse_FinalMod);
}

/* Controls - Keyboard */ {
Expand Down
160 changes: 115 additions & 45 deletions XboxKeyboardMouse/Forms/ControllerPreview.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e4b8b55

Please sign in to comment.