View Single Post
Flandry's Avatar
Posts: 1,559 | Thanked: 1,786 times | Joined on Oct 2009 @ Boston
#371
Originally Posted by IzzehO View Post
Nope, none at all... looks like it works just fine. The sed command loses me a little, can't say I've seen it worked that way before, as in splitting so as to use \1 to represent device=...

The main reason I haven't attempted something like this yet is the hopes a GUI will show up out of the blue to do it all for us. As it is I've got a script that accepts 1, 2, 3 as input... copying a specific input profile to blight_input.conf.
The \1 should refer to the second matched block, so the -2 or 0. The bit i'm not sure about is whether the -2 needs to be in brackets of some kind. The script i borrowed the sed command from was changing a single char in the prboom config file and i don't remember sed syntax very well now.

The gui thing would be nice but might as well make things tidy as possible in the absence of one. I had planned to make the frontend for accelemymote a nice gui to change the settings and calibrate but it's the same thing: might be more effort than it's worth with an already functional alternative.

While your here, does accelemymote support deadzones? Only the more recent versions of mupen64plus support deadzone on joysticks (from what I have read)
It all depends how the joystick implementation works in mupen64. Prboom "dead zone" is controlled by setting the maximum pitch and roll in the accelemymote config file, but its joystick implementation is known to be poor. Other apps might take some intermediate position as "on". Is the N64 joystick analog?

Edit: Saw your edit. The live trigger is the noobish hack i use to allow the background accelemymote process to be shut down and to check that it's possibly already running. The backend checks that the trigger file exists periodically and, if it doesn't, shuts down (quits). This can make it a bit confusing if the trigger gets left behind due to a lock-up of the N900 during emulation (for example). The last bit of the script is to draw attention to that potential scenario and provide a hint how to resolve it.
__________________

Unofficial PR1.3/Meego 1.1 FAQ

***
Classic example of arbitrary Nokia decision making. Couldn't just fallback to the no brainer of tagging with lat/lon if network isn't accessible, could you Nokia?
MAME: an arcade in your pocket
Accelemymote: make your accelerometer more joy-ful

Last edited by Flandry; 2010-07-08 at 14:50.
 

The Following User Says Thank You to Flandry For This Useful Post: