Active Topics

 



Notices


Reply
Thread Tools
Flandry's Avatar
Posts: 1,559 | Thanked: 1,786 times | Joined on Oct 2009 @ Boston
#71
Originally Posted by hiique View Post
is there any way you could make it possible to work on the SNES and GBA emulators? would be nice to play mario kart with it
They'd have to support joystick input. Do they? I can't see any option for it in Dr. NokSNES and don't have GBA emu installed. Post a request in the threads for those and see what the devs have to say. Any emu that was written by scratch for Maemo is probably better off just adding tilt support directly; this is most useful for ports of emus and games that already have joystick support.

I'll do what i can on my end to support them, though.
__________________

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
 
Posts: 356 | Thanked: 172 times | Joined on Jan 2010 @ Canada
#72
As I mentioned in the TechnoballZ thread, this app works really well for controlling that game -- thanks very much for your work on this, Flandry

I'm curious about something -- is it creating analogue joystick commands, digital, or some combination?

The reason I ask is because the controls in TechnoballZ seem to be basically on/off (suggesting digital), but the config file mentions 'analog' as the default profile, and analog would make that game much easier to control (it supports mouse input via touchscreen, so it would seem like an analog joystick should work)..

Maybe this question is better placed in the TechnoballZ thread, but I'm curious about what kind of control is possible with Accelemymote in general, and that just happens to be the game that got me wondering (it's a shame you say mouse control doesn't seem like something you could implement)
 

The Following User Says Thank You to Bingley Joe For This Useful Post:
Flandry's Avatar
Posts: 1,559 | Thanked: 1,786 times | Joined on Oct 2009 @ Boston
#73
From the config file (found in the first post):
; Most games that take digital joystick inputs use some intermediate value as the "on" position.
; PrBoom is a bit stupid in that it doesn't consider a direction "on" until the max is reached, so
; set these to a small value for PrBoom (~7).
max_roll = 16 ; degrees plus/minus from neutral to max out the x axis [16]
max_pitch = 14 ; degrees plus/minus from neutral to max out the y axis [14]
Accelemymote sends fractional values (i.e. emulates an analog joystick) but the range is rather small by default (32 degrees roll, 28 degrees pitch). What i discovered is that many or most games treat joystick input as digital (either on or off in each axis). It may be that TechnoballZ is the same. You can try increasing the max pitch and roll and see if it helps. If not, it's probably a poor implementation of joystick control in TechnoballZ.
__________________

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
 
smoku's Avatar
Posts: 1,716 | Thanked: 3,007 times | Joined on Dec 2009 @ Warsaw, Poland
#74
You may install xorg-joystick driver and make it simulate keypresses.
This is what I did in sixaxis-support package.
__________________
smoku @xiaoka.com (SMTP/XMPP) ...:.:....:... pebbled . Poky Fish : sixaxis . psx4m . uae4all
Jolla Phone post-mortem . . . . . . . . . . -> 1+1 VGN-UX390N
 
smoku's Avatar
Posts: 1,716 | Thanked: 3,007 times | Joined on Dec 2009 @ Warsaw, Poland
#75
PS. An GUI app for editing .fdi file mapping would be useful for both projects.
I hesitate though to write one, because I have no good idea how to enable user editing root-owned files.
__________________
smoku @xiaoka.com (SMTP/XMPP) ...:.:....:... pebbled . Poky Fish : sixaxis . psx4m . uae4all
Jolla Phone post-mortem . . . . . . . . . . -> 1+1 VGN-UX390N
 
Posts: 356 | Thanked: 172 times | Joined on Jan 2010 @ Canada
#76
Originally Posted by Flandry View Post
From the config file (found in the first post):

Accelemymote sends fractional values (i.e. emulates an analog joystick) but the range is rather small by default (32 degrees roll, 28 degrees pitch). What i discovered is that many or most games treat joystick input as digital (either on or off in each axis). It may be that TechnoballZ is the same. You can try increasing the max pitch and roll and see if it helps. If not, it's probably a poor implementation of joystick control in TechnoballZ.
Ahh ok -- thanks for the explanation.

If I remember correctly, the Amiga only supported digital joysticks, so I suppose it would make sense that TechnoballZ is interpreting Accelemymote's input that way.
 
pantera1989's Avatar
Posts: 577 | Thanked: 699 times | Joined on Feb 2010 @ Malta
#77
Hi I noticed that the icon for Accelmymote is Icon wanted. So I made a few that I think would suite this project.

I made a tilted crosshair in space. I think it suits the app.

In the zip file there is a 48x48 and 64x64 colour icon, and a 48x48 and 64x64 black and white icon and a 64x64 + 48x48 transparent icons. Here are two screenshots:

Transparent:


Colour:


I updated the zip file too.
Attached Files
File Type: zip Accelemymote.zip (51.7 KB, 122 views)
__________________
ford

Last edited by pantera1989; 2010-07-05 at 18:32.
 

The Following User Says Thank You to pantera1989 For This Useful Post:
Flandry's Avatar
Posts: 1,559 | Thanked: 1,786 times | Joined on Oct 2009 @ Boston
#78
New version in repo. It is now possible to set the origin ("zero the axis") with accelemymote. To do this, click the button in the GUI and hold it at the desired neutral tilt until a banner informs you it has been updated (about 5 s).

It can also be done by changing the value of the offset_pitch in the config file to 900 and then saving.

Also available now is a "dead zone" setting. This is a fraction of the maximum tilt that should be considered neutral before the joystick starts to send input.

Version 0.1.0 breaks automation compatibility with some scripts (that for prboom) as well as apps (MAME). Until those apps are updated, you should start accelemymote manually (using the gui) before starting the app to get accelerometer control. Note that it should still work with those apps, just not automatically as it did before.

Accelemymote 0.1.0
  • Moved trigger file to /tmp/ to not survive reboots: /tmp/accelemymote-live
    ==Breaks compatibility with some apps using accelemymote!==
  • Now supports setting offset. Setting offset in config file to 900 will cause current pitch value to be added after 4 s.
  • Added deadzone parameter to cfg file. This is the fraction of the maximum pitch and roll angles from the neutral position that will not register as joystick input.

Accelemymote-gui 0.0.4-0.1.1
  • Add "Set origin" button (only works for pitch).
  • Update to work with accelemymote 0.1.0.
  • Add icon by pantera1989.

Known issues:
  • The set origin feature will keep updating for a second or two. Make sure you hold it where you want it until the banners stop.
  • "GUI" is still a huge exaggeration. :P
__________________

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-13 at 22:45.
 

The Following 9 Users Say Thank You to Flandry For This Useful Post:
Flandry's Avatar
Posts: 1,559 | Thanked: 1,786 times | Joined on Oct 2009 @ Boston
#79
With no reports of Accelemymote killing any babies or kicking any puppies in the months it has been around, i think it's time to promote it to testing. If you have found it useful, please consider comparing it against the Extras-testing Quality Assurance Checklist and giving it a thumbs up or down accordingly.

The package page will be here momentarily. Thanks for your help!
__________________

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-13 at 22:30.
 

The Following 5 Users Say Thank You to Flandry For This Useful Post:
Posts: 150 | Thanked: 16 times | Joined on Jun 2010
#80
if you add support for psx4all it would be a bomb!!!!
PLEEEASEEEEE!!!!
 
Reply

Tags
accelerometer, analog input, game controls, joystick, menu selection, mouse please, tilt


 
Forum Jump


All times are GMT. The time now is 15:49.