News

gbaMouse (GBA misc)

Author release notes:

I’ve spend some time the last couple of days trying to devise a way to get a sort of mouse working on the gba using the gbaccelerometer. Here is what i have come up with so far. I created some sort of library called gbamouse.
It reads the values from the gbaccelerometer and provides these as acceleration on the axis, rotation around the axis, angle between rotated xy,yz,zy planes and the corresponding untransformed planes.
Unlike a sort of joystick, a tilting of the gba from the original position doesn’t represent movement of the mouse, but an absolution position that is relative to the original position (i.e. calibration)

I provided a little example to show the settings. One can browse through them with the dpad. It also shows the values the mouse object reads. One can turn that off to see the mouse running at ‘normal’ speed. So far everything is programmed using floats (and pretty fugly), because this is a proof of concept.

I hope that people test this and give feedback, and their favorite settings.
I hope that eventually people will port some old dos game or so (that is if they havent all moved to the DS yet).
source/binary:
http://www.cs.mcgill.ca/~adubra/gba/mouse/gbaMouse.zip
Anton

(ps:)The settings are:
source of mouse x and y values – either axis angle, plane angle or values directly from accelerometer
x/y sensitivity – the higher the value, the farther the mouse will go on tilt
x/y mouse lag – its a sort of filter to avoid small jumps; it represents how much the difference between old mouse position and new measured mouse position is to be multiplied by to get the new actual mouse position
one can associate a button (or more) with the mouse, for movement and calibration (in the example i used both shoulders and select)
calibration – calibration on pressing mouse, releasing mouse, no calibration
center on calibration – either center the mouse on calibration, or keep it where it is
when to move – move or not on button press, move or not on not button press

http://forum.gbadev.org/viewtopic.php?p=135800

By · 0 comments
DSFile v0.01 (NDS Application)

calcprogrammer1 started to work on a file browser that would support both slot-1 and slot-2 at the same time. Though it isn’t much, it can browse both slots (click the GBA or DS icons to switch slots). It can only be patched with one DLDI though (as all programs using libfat), so the SLOT2 device must be natively supported (GBAMP CF is what I have) and the SLOT1 device must have the DLDI patch.

Thanks to http://www.dev-fr.org for the news.

http://forum.gbadev.org/viewtopic.php?t=13779

By · 0 comments