Approver
519
edits
m (capitalize Rehid when applicable) |
(fixed touchtokeys explanation) |
||
Line 87: | Line 87: | ||
<p><code>"cpad":</code>, which maps a key press to a circle pad x and y coordinate from -190 to 190;</p> | <p><code>"cpad":</code>, which maps a key press to a circle pad x and y coordinate from -190 to 190;</p> | ||
<syntaxhighlight lang="json">{"cpad":[{"press":"CUP","get":[0,190]},{"press":"CDOWN","get":[0,-190]},{"press":"CLEFT","get":[-190,0]},{"press":"CRIGHT","get":[190,0]}]}</syntaxhighlight> | <syntaxhighlight lang="json">{"cpad":[{"press":"CUP","get":[0,190]},{"press":"CDOWN","get":[0,-190]},{"press":"CLEFT","get":[-190,0]},{"press":"CRIGHT","get":[190,0]}]}</syntaxhighlight> | ||
<p><code>"touch":</code>, which maps a key press to a | <p><code>"touch":</code>, which maps a key press to a given x,y coordinate on the touchscreen from 0,0 top left to 320,240 bottom right;</p> | ||
<syntaxhighlight lang="json">{"touch":[{"press":"LEFT+UP","get":[0,0]},{"press":"RIGHT+DOWN","get":[320,240]}]}</syntaxhighlight> | <syntaxhighlight lang="json">{"touch":[{"press":"LEFT+UP","get":[0,0]},{"press":"RIGHT+DOWN","get":[320,240]}]}</syntaxhighlight> | ||
<p><code>"touchtokeys":</code> which maps | <p><code>"touchtokeys":</code> which maps a box starting at a given x,y coordinate, with a given height and width, that when tapped will output a key press;</p> | ||
<syntaxhighlight lang="json">{"touchtokeys":[{"press":[ | <syntaxhighlight lang="json">{"touchtokeys":[{"press":[10,20,50,100],"get":"A"}]}</syntaxhighlight> | ||
<p>For this example, | <p>For this example, it creates a box starting at x=10 y=20, with a height of 50 and a width of 100.</p> | ||
<p>Other options include:<br> | <p>Other options include:<br> | ||
<code>"cpadtodpad":true</code> maps the C-pad with D-pad key presses<br> | <code>"cpadtodpad":true</code> maps the C-pad with D-pad key presses<br> | ||
Line 98: | Line 98: | ||
<code>"homebutton":</code> maps the HOME button to a key press</p> | <code>"homebutton":</code> maps the HOME button to a key press</p> | ||
<p>These Options can be strung together into a single line, for example:</p> | <p>These Options can be strung together into a single line, for example:</p> | ||
<syntaxhighlight lang="json">{"keys":[{"press":"ZR","get":"R"},{"press":"ZL","get":"L"}],"cpad":[{"press":"CUP","get":[0,190]},{"press":"CDOWN","get":[0,-190]}],"touch":[{"press":"LEFT+UP","get":[0,0]},{"press":"RIGHT+DOWN","get":[320,240]}],"touchtokeys":[{"press":[ | <syntaxhighlight lang="json">{"keys":[{"press":"ZR","get":"R"},{"press":"ZL","get":"L"}],"cpad":[{"press":"CUP","get":[0,190]},{"press":"CDOWN","get":[0,-190]}],"touch":[{"press":"LEFT+UP","get":[0,0]},{"press":"RIGHT+DOWN","get":[320,240]}],"touchtokeys":[{"press":[10,20,50,100],"get":"A"}],"cpadtodpad":true,"dpadtocpad":true,"overridecpadpro":true,"homebutton":"ZR+ZL"}</syntaxhighlight> | ||
</li> | </li> | ||
<li>Copy <code>rehid.json</code> to a <code>rehid</code> folder on the root of your SD card | <li>Copy <code>rehid.json</code> to a <code>rehid</code> folder on the root of your SD card |