|
|
(4 intermediate revisions by 3 users not shown) |
Line 1: |
Line 1: |
− | {{IntroNote | This page is a work in progress, the instructions in here may or may not work for you (They were copied from [http://boards.openpandora.org/index.php?/topic/2860-tutorial-how-to-have-your-nubs-change-modes-upon-launching-of-a-pnd/page__view__findpost__p__49157 here]. For an introduction to PNDs, see [[PND quickstart]]. }}
| + | #REDIRECT [[Make and run simple PND]] |
− | | |
− | == Rationale ==
| |
− | Why would you want to do this? Simple; at least one person has reported that, when playing a natively-ported FPS (like Duke Nukem or Quake, but not GoldenEye) on the Pandora, using the right nub as the mouse has proven to be more comfortable and less awkward. But switching nub modes manually is annoying; so let's have Linux do it for you!
| |
− | | |
− | == Tutorial ==
| |
− | === Step 1 ===
| |
− | You must download sebt3's new [[pnd_run.sh]] installer and run it. Get it [http://sebt3.openpandora.org/pnd/pnd_run_installer.pnd here].<br />
| |
− | '''Note: This step is no longer required as of Hotfix 6 Alpha 1.'''
| |
− | | |
− | === Step 2 ===
| |
− | Open a text editor and copy/paste this:
| |
− | | |
− | <source lang="bash">cat /proc/pandora/nub0/mode > /tmp/nub0mode_before
| |
− | cat /proc/pandora/nub1/mode > /tmp/nub1mode_before
| |
− | | |
− | echo "mbuttons" > /proc/pandora/nub0/mode
| |
− | echo "mouse" > /proc/pandora/nub1/mode</source>
| |
− | | |
− | This will back up your current nub modes, then switch them; the left will act as the mouse buttons, the right will act as the mouse. If you'd like, you can substitute "scroll" or "absolute" (joystick) in, depending on how you like your nubs. But you must save this as '''PND_pre_script.sh'''. Save it wherever you'd like, you will be moving it elsewhere later.
| |
− | | |
− | === Step 3 ===
| |
− | Copy/paste this into the editor again. Different file this time.
| |
− | | |
− | <source lang="bash">cat /tmp/nub0mode_before > /proc/pandora/nub0/mode
| |
− | cat /tmp/nub1mode_before > /proc/pandora/nub1/mode
| |
− | | |
− | rm /tmp/nub0mode_before /tmp/nub1mode_before</source>
| |
− | | |
− | This will restore your nub modes to what they were before, and delete the temporary files used to store them. You must save it as '''PND_post_script.sh'''.
| |
− | | |
− | === Step 4 ===
| |
− | Simply copy these files into the appdata folder of your program of choice! Now you're done. If you want to test it, drag these files into the appdata of a program that runs windowed (like [[Comix|Comix]] or [[Deadbeef|Deadbeef]]), so you can test with the mouse. Simply delete the files if you no longer desire their effects.
| |
− | | |
− | | |
− | [[Category:PND]]
| |
− | [[Category:Development]]
| |
− | [[Category:Keyboard]]
| |