maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   [Maemo 5] Accelemymote: making your accelerometer more joy-ful (https://talk.maemo.org/showthread.php?t=45482)

Bazza 2010-03-07 01:50

Re: [Maemo 5] Accelemymote: making your accelerometer more joy-ful
 
Quote:

Originally Posted by oldpmaguy (Post 558345)
I'm not saying yea or nay, I'm just wondering why it won't work for those games. I'd certainly be willing to try, and judge for myself - unless it's an issue of it not working for them at all. That's why I asked my Q.

oh ok,

i may test ikari and other 2d shooters just to see if they work.;)

Flandry 2010-03-13 19:04

Quote:

Originally Posted by oldpmaguy (Post 558236)
I'm not sure I understand what you mean here, other than Ikari Warriors having a nonstandard joystick, which I'm familiar with.

What I meant was, shouldn't scrolling shooters be able to be controlled by accelerometer? Since they're just 8-way joysticks, right? I'm not talking about anything as fancy as an Ikari controller. Just something straightfoward like UN Squadron, a personal favorite.

It was just an example that some ROMS don't seem to be set up to make the best use of the SDLMAME joystick (one that makes sense in the game's context). I'm guessing with the example you gave, the joystick is simply not mapped properly to the controls for the game. It might, for example, only control player 2 and not player 1.

See if there are any joystick control options in the menus for now. I'll look into it when I get a chance.

Minor update for better MAME compatibility:

0.0.5 * Zero axis on exit. davidfalkayn@gmail.cmo 2010-03-13 18:37

Flandry 2010-03-30 19:37

Re: [Maemo 5] Accelemymote: making your accelerometer more joy-ful
 
New version:
Code:

0.0.6        * Turtle mode enabled by default.
  - Accelemymote sleeps while upside-down.
  - Flipping it over toggles joystick events.

Updated cfg file info in first post:

; Turtle makes the driver sleep when upside-down. Also, flipping the phone on its face activates/deactivates joystick events.
; 1 is enabled
; 0 is disabled
; -1 is active (start in turtle mode)

turtle = 1 ; Toggle joystick by turning the N900 upside down. [1]

; Turn off event generation and slow frame_rate to 3.

attila77 2010-04-26 17:47

Re: [Maemo 5] Accelemymote: making your accelerometer more joy-ful
 
I was wondering... would an option to use the proximity sensor as an enable/disable switch be too much of a bother to ask ? I often find it difficult to hold a direction with the various sensitivity settings (especially in games that expect alternating joystick/mouse + keyboard input) so would be super-cool if I could just go to ’neutral’ by covering the prox sensor...

legoman666 2010-05-27 01:50

Re: [Maemo 5] Accelemymote: making your accelerometer more joy-ful
 
Is there a way to set up a dead zone so that I can fly straight in descent? without holding the device in 1 very specific tilt/yaw?

Flandry 2010-05-31 16:29

Re: [Maemo 5] Accelemymote: making your accelerometer more joy-ful
 
Wow, PR1.2 finally was released. Maybe it's worth revisiting projects that were on hold "just a bit" until PR1.2. :rolleyes:

Quote:

Originally Posted by attila77 (Post 628625)
I was wondering... would an option to use the proximity sensor as an enable/disable switch be too much of a bother to ask ? I often find it difficult to hold a direction with the various sensitivity settings (especially in games that expect alternating joystick/mouse + keyboard input) so would be super-cool if I could just go to ’neutral’ by covering the prox sensor...

I'm polling anyway so might as well check that. I was considering making it a button option, too. I'll put it on the list. :)

Quote:

Originally Posted by legoman666 (Post 681320)
Is there a way to set up a dead zone so that I can fly straight in descent? without holding the device in 1 very specific tilt/yaw?

That's what the max pitch and roll settings in the config file generally do, depending on how the game interprets joystick input. I originally designed the config file on the misconception that most games use analog input but the actuality seems to be that most games are digital, in which case the max_roll and max_pitch are probably exactly what you need.

Let me know if changing those doesn't have the desired effect.

mankir 2010-05-31 16:45

Re: [Maemo 5] Accelemymote: making your accelerometer more joy-ful
 
Is it possible to use the app for mouse emulation? Would be cool for Browser and Lxde...

Flandry 2010-06-01 02:52

Re: [Maemo 5] Accelemymote: making your accelerometer more joy-ful
 
Houston, we have button. It's actually kind of cool. :D

Default settings for accelemymote 0.7 (accelemymote-gui 0.0.3) have been updated to include the proximity sensor as joystick button A. Cover the left side of your phone to "press" the button.

An alternative setting, available in the main.cfg file documented in the first post, is to have the proximity sensor deactivate/reactivate accelemymote. In this mode, you can cover the sensor to switch it to turtle mode, cover it again to make it start working as a joystick again, or keep it covered to put it in a deeper sleep mode.

The turtle mode functionality is still accessible by turning the phone upside down by default.

I have tested it with PrBoom with good results. Let me know how it works for you.

Code:

accelemymote (0.0.7) unstable; urgency=low

  * Accelemymote joystick device now reports itself having a button.
  * Added polling of proximity sensor with options for effects:
    - set proximity to 1 to give it same behavior as turtle mode.
    - 2 makes it simulate joystick button A.
  * Added basic (per frame) autofire option for button A. Not fully
    functional yet.

 -- Flandry <davidfalkayn@gmail.cmo>  Mon, 31 May 2010 20:59:14 -0400

Quote:

Originally Posted by mankir (Post 692063)
Is it possible to use the app for mouse emulation? Would be cool for Browser and Lxde...

Not as things are now. It would require registering the input device as having relative axes instead of absolute and probably also titan's kernel (just guessing about that part).

Flandry 2010-06-01 14:23

Re: [Maemo 5] Accelemymote: making your accelerometer more joy-ful
 
I'm wondering what to do next with this. Who is using it, how do they use it, and what would make it more useful?

I intend to make the gui actually change settings and stuff at some point but that's going to require me to learn something (horrors!) and do some rejiggering.

Moar feedback, please.

hiique 2010-06-01 23:16

Re: [Maemo 5] Accelemymote: making your accelerometer more joy-ful
 
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 :D


All times are GMT. The time now is 00:50.

vBulletin® Version 3.8.8