Skip to content

Instantly share code, notes, and snippets.

View Ryochan7's full-sized avatar

Travis Nickles Ryochan7

View GitHub Profile
@Ryochan7
Ryochan7 / half-life2-wii-motion.gamecontroller.amgp
Created March 18, 2017 21:15
Sample antimicro Wiimote Motion Plus profile
<?xml version="1.0" encoding="UTF-8"?>
<gamecontroller configversion="19" appversion="2.20.2">
<!--The SDL name for a joystick is included for informational purposes only.-->
<sdlname>WiimoteGlue Virtual Gamepad</sdlname>
<!--The GUID for a joystick is included for informational purposes only.-->
<guid>03000000010000000100000001000000</guid>
<names/>
<sets>
<set index="1">
<stick index="1">
@Ryochan7
Ryochan7 / touchmote_current_state_20180605.diff
Last active June 5, 2018 22:22
Changes made to Touchmote project
diff --git a/.gitignore b/.gitignore
index cff167c..793ee80 100644
--- a/.gitignore
+++ b/.gitignore
@@ -115,7 +115,8 @@ _UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
-
+*.VC.db
@Ryochan7
Ryochan7 / settings.json
Last active October 12, 2022 05:49
Current Touchmote settings as of 2022/10/11
{
"input": "multipointer",
"output": "touch",
"pairOnStart": false,
"connectOnStart": true,
"minimizeOnStart": false,
"minimizeToTray": false,
"pairedOnce": false,
"primaryMonitor": "",
"completelyDisconnect": false,
@Ryochan7
Ryochan7 / smoothtest.py
Created June 6, 2017 17:33
Test smooth modifier routine
import math
from collections import deque
smoothtest = deque([ 0.0 ] * 8, maxlen=8)
weights = [ 0.75 ** x for x in reversed(xrange(8)) ]
weights2 = [ 0.75 ** x for x in xrange(8) ]
w_sum = sum(weights)
result = 0
@Ryochan7
Ryochan7 / moltenwiigamepad
Created June 16, 2017 08:49
Example MoltenGamepad start-up script
#!/bin/sh
disablegids()
{
sleep 6
GAMEPAD_IDS=`xinput | grep "Virtual Gamepad (MoltenGamepad)" | awk '{print $6}' | tr -d "id="`
for gid in $GAMEPAD_IDS
do
@Ryochan7
Ryochan7 / dnsmasq.conf
Created July 6, 2017 08:53
dnsmasq config file for dcnow use
# Configuration file for dnsmasq.
#
# Format is one option per line, legal options are the same
# as the long options legal on the command line. See
# "/usr/sbin/dnsmasq --help" or "man 8 dnsmasq" for details.
# Listen on this specific port instead of the standard DNS port
# (53). Setting this to zero completely disables DNS function,
# leaving only DHCP and/or TFTP.
#port=5353
@Ryochan7
Ryochan7 / dcnow-helper.py
Created July 6, 2017 09:11
Python module that makes using DCNow a little easier
#!/usr/bin/env python
import os
import sys
import time
import signal
import logging
# cd to directory containing upstream DreamPi source code
os.chdir("/home/ryochan7/Sources/dreampi/")
@Ryochan7
Ryochan7 / ds4windows_1_4_92_gyrocalibtest.diff
Created September 10, 2017 18:23
Experimental Gyro Calibration for DS4Windows
diff --git a/DS4Windows/DS4Library/DS4Device.cs b/DS4Windows/DS4Library/DS4Device.cs
index 82919d2..aaf38a6 100644
--- a/DS4Windows/DS4Library/DS4Device.cs
+++ b/DS4Windows/DS4Library/DS4Device.cs
@@ -441,6 +441,11 @@ namespace DS4Windows
touchpad = new DS4Touchpad();
sixAxis = new DS4SixAxis();
+
+ byte[] calibration = new byte[41];
@Ryochan7
Ryochan7 / hidguardian_changes_20171103.diff
Created November 3, 2017 07:56
Some minor changes being tested for HidGuardian
diff --git a/Sys/HidGuardian/Device.c b/Sys/HidGuardian/Device.c
index 7f49c8c..8e17fdc 100644
--- a/Sys/HidGuardian/Device.c
+++ b/Sys/HidGuardian/Device.c
@@ -141,6 +141,7 @@ VOID EvtDeviceFileCreate(
WDF_REQUEST_SEND_OPTIONS options;
NTSTATUS status;
BOOLEAN ret;
+ WDF_REQUEST_PARAMETERS params;
@Ryochan7
Ryochan7 / trackball_test_20180101.diff
Last active January 1, 2018 17:49
Testing trackball emulation with DS4 touchpad
diff --git a/DS4Windows/DS4Control/ControlService.cs b/DS4Windows/DS4Control/ControlService.cs
index 14d1ea4..5215c3d 100644
--- a/DS4Windows/DS4Control/ControlService.cs
+++ b/DS4Windows/DS4Control/ControlService.cs
@@ -385,6 +385,7 @@ namespace DS4Windows
{
device.setIdleTimeout(getIdleDisconnectTimeout(ind));
device.setBTPollRate(getBTPollRate(ind));
+ touchPad[ind].ResetTrackAccel((int)getTrackballFriction(ind));