Skip to content

Commit

Permalink
Fixed Triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
Graicc committed Apr 12, 2020
1 parent 9cb55e9 commit 4593819
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
3 changes: 2 additions & 1 deletion TouchBinder.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Exit() {

; Menu, tray, add, Save, Save

; GET RID OF THIS IN RELEASES
Menu, Tray, Icon, icon.png

; Start the Oculus sdk.
Expand Down Expand Up @@ -128,7 +129,7 @@ Loop {
;
if DllCall("auto_oculus_touch\getTrigger", "Int", 0, "Int", 0, "Float") > 0.7
bDown += bLTrigger
if DllCall("auto_oculus_touch\getTrigger", "Intaaaa", 1, "Int", 0, "Float") > 0.7
if DllCall("auto_oculus_touch\getTrigger", "Int", 1, "Int", 0, "Float") > 0.7
bDown += bRTrigger

; Grips
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ <h2>Formatting Guide</h2>
<form id="form">
<button type="button" onclick="AddRow()" id="add">New Binding</button>
<button type="button" onclick="RemoveRow()">Remove Binding</button>
<button type="button" onclick="Submit()" style="display: block;">Generate</button>
<button type="button" onclick="Submit()" style="display: block;">Generate File</button>
<input type="file" id="file" onchange="Load(this.files)" multiple>
</form>
<a download="settings.txt" id="downloadlink" style="display: none">Download</a>
<a download="settings.txt" id="downloadlink" style="display: none">Download File</a>
</div>
</body>
</html>
4 changes: 2 additions & 2 deletions docs/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ function AddColumn(elem) {
<option value="bY"> Y </option>
<option value="bMenu" class="bOnly"> Menu </option>
<option value="bLTrig" class="bOnly"> Left Trigger </option>
<option value="bRTrig" class="bOnly"> Right Trigger </option>
<option value="bLTrigger" class="bOnly"> Left Trigger </option>
<option value="bRTrigger" class="bOnly"> Right Trigger </option>
<option value="bLGrip" class="bOnly"> Left Grip </option>
<option value="bRGrip" class="bOnly"> Right Grip </option>
Expand Down
14 changes: 7 additions & 7 deletions docs/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,18 @@ option:disabled {
display: none;
}

.row {
margin-bottom: 10px;;
padding: 5px;
.row,.pair,button {
border-width: 2px;
border-radius: 5px;
border-radius: 5px;
border-color: #000000;
border-style: solid;
}

.row {
margin-bottom: 10px;;
padding: 5px;
}

.pair {
display: inline-block;
}
Expand All @@ -47,9 +50,6 @@ button, select, input, label {
button {
background-color: transparent;
color: #000000;
border-width: 2px;
border-radius: 5px;
border-color: #000000;
}

label {
Expand Down

0 comments on commit 4593819

Please sign in to comment.