Hey guys =), I have always thought Aquaria looked beautiful and looked at it from afar, but only until the HIB I was actually able to get it =O I am blown away by the generosity of Alec and everyone else who opened their games =)
This is a bit offtopic, but since we ARE discussing modding AND tablet support I thought I'd ask
I've never done a line of code in my life and want to implement this
Apologies for bumping. Felt there was still some need to solve this.
At least my Thinkpad does not contain similar setup wizard (Plus Wacom's drivers break its pressure sensitivity for some reason) so the pen -> mouse solution doesn't work for me (And other thinkpad users I guess). Also I'd think the Wacom solution is prone going out of sync if the pen is lifted too far from the surface.
Fortunately Aquaria uses open source library for input, so changing the source and recompiling it isn't that hard.
For those who want to do it themselves:
Get sources from SDL homepage. The mouse handling is located in src/events/sdl_mouse.c. Changing the pointer is moved by incrementing its position on each update:
x = SDL_MouseX + x
y = SDL_MouseY + y
To make positioning absolute, removing these lines works. This stops mouse from staying at edges, but makes it misaligned. Origin of mouse is in middle of screen and origin of cursor is at top left. Changing the two above lines into
x = x + (SDL_VideoSurface->w /2);
y = y + (SDL_VideoSurface->h /2);
fixes the problem. Worth mentioning though, that after this using normal mouse is not possible.
Copy the SDL.dll into Aquaria directory (Backup original, so you can switch it for when you want to use normal mouse!)
Compiled library: http://jubjub.homeip.net/files/SDL.dll
Changed source: http://jubjub.homeip.net/files/SDL-1.2.13-tablet.rar
The source is under LGPL.
Note: I haven't given it very extensive testing, and only with the demo (Wah! Wants working credit card!). And in case this has been fixed in one of the patches for full version, it can be ignored. Also tablet clicks are sometimes too quick for Aquaria to register them, atleast for me. So if you have difficulties clicking with tablet, try clicking slower.
- Wace
Does anybody still have this modified SDL.dll?...or can anyone help me with getting this kind of mod?