Touchscreen?

8 replies [Last post]
matt.mattop
User offline. Last seen 13 years 31 weeks ago. Offline
Joined: 2010-08-18
Posts: 3

Hi all

I was wondering if HW was compatible with touchscreen input devices. At the moment, my stylus works more like a joystick - any displacement fron an arbitrary 'center' position results in the view moving at some speed in that direction. l guess this is a result of capturing mouse movements. Is there a hidden setting anywhere to change this?

Many thanks!

Cairo
Cairo's picture
User offline. Last seen 1 year 3 weeks ago. Offline
Joined: 2010-07-06
Posts: 198

What are you using it on? Some mobile device with Windows Mobile or something?

Style is spelled style not stile.
Use Dropbox to backup your important goodies!

matt.mattop
User offline. Last seen 13 years 31 weeks ago. Offline
Joined: 2010-08-18
Posts: 3

Windows Mobile?! *shudders* haha No, I've got an old tablet pc running ubuntu.

Cairo
Cairo's picture
User offline. Last seen 1 year 3 weeks ago. Offline
Joined: 2010-07-06
Posts: 198

matt.mattop allegedly wrote:

Windows Mobile?! *shudders* haha No, I've got an old tablet pc running ubuntu.

Ah, Ubuntu. I love ti but i did something with x.org and now its all tty...
I might be able to fix it tomorrow though.
I don't think there is but you would have to ask someone h=who really knows.

Style is spelled style not stile.
Use Dropbox to backup your important goodies!

nemo
nemo's picture
User offline. Last seen 2 weeks 6 days ago. Offline
Joined: 2009-01-28
Posts: 1861

Yeah, unfortunately no. The iPhone stuff koda has done is iPhone specific.
Shame.

Code changes would be necessary to get the engine to do more touchpad friendly behavior on it's own.

Unless Cairo really does know of some tablet reconfig to make it act mousier...

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Cairo
Cairo's picture
User offline. Last seen 1 year 3 weeks ago. Offline
Joined: 2010-07-06
Posts: 198

nemo allegedly wrote:

Yeah, unfortunately no. The iPhone stuff Koda has done is iPhone specific.
Shame.

Code changes would be necessary to get the engine to do more touchpad friendly behavior on it's own.

Unless Cairo really does know of some tablet reconfig to make it act mousier...


No, I haven't done anything with tablet computers, Sorry matt.mattop.
Could you plug in a mouse or doesn't it have a port?
Is it at all usable? Just curious. Smile

Style is spelled style not stile.
Use Dropbox to backup your important goodies!

Koda
Koda's picture
User offline. Last seen 10 weeks 1 day ago. Offline
Joined: 2008-11-10
Posts: 215

touchscreen support has only been recently added to sdl development branch
so until sdl 1.3 becomes stable i wouldn't hold my breath

one simple hack you could try is to remove

Quote:

{$IFNDEF IPHONEOS}
if (not (CurrentTeam^.ExtDriven and isCursorVisible and not bShowAmmoMenu)) and cHasFocus then
begin
SDL_GetMouseState(@CursorPoint.X, @CursorPoint.Y);
CursorPoint.X:= CursorPoint.X - (cScreenWidth shr 1);
CursorPoint.Y:= cScreenHeight - CursorPoint.Y;
end;
{$ENDIF}

from MoveCamera in uWorld.pas

i haven't tried this on a desktop, so i'm curious how it will turn out Smile

matt.mattop
User offline. Last seen 13 years 31 weeks ago. Offline
Joined: 2010-08-18
Posts: 3

First off, sorry for not replying for ages... I, erm... killed my router fairly spectacularly...

Cairo, thanks for the help, and good luck with ubuntu Smile I could plug in a mouse, but that means carrying one around, it isn't quite as ''polished'' Wink Smiley As for usability... it's kinda useable... with small movements from wherever the mouse was when the turn started, you can move the cursor reasonably well, but trying to click a 'hog or weapon throws you to one corner of the game world. Aiming is also very difficult.

nemo, I can make the 'screen work more like a mouse, (ie, not absolute positioning) but it's very strange using it like that. Although it does feel a bit more natural if you just use the stylus in one section of the screen, as if its a touchpad. Also currently requires an X restart to change between modes too Sad Smiley I must work that out...

Koda, thanks! I shall try that and see what happens. I imagine it'll either be perfect, or fail in some awesome fashion, so either is good! Wink Smiley

I've not played with sdl, is it just a matter or svn'ing sdl trunk and compiling against it? (and fixing whatever api changes they've made...)

Cairo
Cairo's picture
User offline. Last seen 1 year 3 weeks ago. Offline
Joined: 2010-07-06
Posts: 198

Anything happened?

Style is spelled style not stile.
Use Dropbox to backup your important goodies!

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]