![]() |
[Maemo 5] Accelemymote: making your accelerometer more joy-ful
Accelemymote
making your accelerometer more joy-ful Accelemymote takes input from the accelerometers in the N900 and converts it into joystick events. This makes any game that supports a generic joystick interface tilt compatible. Games and emulators that support tilt control using Accelemymote:
Status: Default profile (analog 2 axis; proximity sensor as button A) and debug implemented. As installed, works reasonably well with quite a few MAME ROMs and is okay in uqm. PrBoom works well, but requires some changes to the default config due to its poor joystick support (a separate issue that will hopefully be dealt with at some point). With some key mapping and config tweaks (this is where you come in...), a lot of other games and MAME ROMs should work well. Please report. Package pages: GUI -- Found in the "System" category. Will automatically install the other package: CLI daemon -- for those who want to invoke via scripts or xterm. You'll have to use apt to grab this by itself. Instructions:
How to Edit Settings (for Dummies :))
Zeroing the axis: To change the baseline tilt (the neutral position) from the default of 30 degrees, click the button in the GUI and hold it at the desired neutral tilt until a banner informs you it has been calibrated (about 5 s). Triggering that automatic calibration can also be done by changing the value of the offset_pitch in the config file to 900 and then saving. Alternatively, you can change the value to whatever angle you hold the N900 at by default (0 would be flat on a table, 90 vertical). Config Options (main.cfg) Code:
; Accelemymote configuration file |
Re: [Maemo 5] Accelemymote: making your accelerometer more joy-ful
Let me be the first to say - HUZZAH!
|
Re: [Maemo 5] Accelemymote: making your accelerometer more joy-ful
Initial proof-of-concept package uploaded. It seems to set up the driver correctly and was tested to work with PrBoom (you need to enable the joystick in the PrBoom menu.)
The way it works right now is through a toggle, implemented as a startup script and a file called ~/accelemymote/live-trigger, that gets the daemon running. It will continue to run, consuming about 0.8% CPU cycles, until you restart or delete the trigger file. You can delete the trigger file by clicking the app icon again. If in doubt whether it is running, you can run top and see if the process shows up. It's probably more sensible to run it from the command line for now: /opt/maemo/usr/bin/accelemymote.sh Let me know if it works for you. There is a lot left to do before it's ready for mainstream, but i want to be sure the module and driver installation is working. Edit: i tried it with uqm and it's way too spammy with events to work well there right now. |
Re: [Maemo 5] Accelemymote: making your accelerometer more joy-ful
Great work all we need now is a flight simulator...or a port of Descent!
|
Re: [Maemo 5] Accelemymote: making your accelerometer more joy-ful
i just tried it with prboom and it's working, so good job for this :)
But the problem is that is nearly impossible to play with it because of the settings of the accelerometer :( Would it be possible to config accelemymote without going to ~/.accelemymote/main.cfg ? I'm really a end user and if config woul be possible from the application it would be much more friendly :) anyway, it's just the 0.1 so we can expectgood things for the 0.2 ;) |
Re: [Maemo 5] Accelemymote: making your accelerometer more joy-ful
actually it installs mostlly but i get an error during install, icon is in menu........I run app, it closes and I dont see it in top
|
Re: [Maemo 5] Accelemymote: making your accelerometer more joy-ful
Thanks for testing.
Quote:
tangs: The config file is a first step. Version 0.0.0 didn't have any options at all. ;) What is it about the accelerometer setup that you find hard to control? |
Re: [Maemo 5] Accelemymote: making your accelerometer more joy-ful
Someone tried to port Descent 1 to OpenGL ES, couldn't get it running though.
|
Re: [Maemo 5] Accelemymote: making your accelerometer more joy-ful
I looked at Descent 1 and 2 but they suffer from the same problem as other commercial games with open engine and closed data: you can't distribute the content via the repos so it can never be end-user friendly. That was enough to discourage me from putting more time into it. It seems like the shareware version might be ok to distribute, though, so maybe there was something else to it. I really should keep notes. :p
Descent 1 in its original incarnation could certainly have run on the N900 without GLES acceleration--in fact, there was a descent port for an earlier version of maemo iirc. So far i have one report of success and one of failure at getting this package to work. Anyone else? |
Re: [Maemo 5] Accelemymote: making your accelerometer more joy-ful
I'm a bit scared because a friend of mine installed some joydev kernel and after rebooting phone it was totally bricked so he needed to flash it... so any more reports of some brave people in here??
|
All times are GMT. The time now is 20:27. |
vBulletin® Version 3.8.8