![]() |
2007-09-30
, 13:45
|
|
Posts: 693 |
Thanked: 502 times |
Joined on Jul 2007
|
#42
|
![]() |
2007-09-30
, 16:26
|
|
Posts: 693 |
Thanked: 502 times |
Joined on Jul 2007
|
#43
|
![]() |
2007-10-01
, 11:51
|
|
Posts: 1,107 |
Thanked: 720 times |
Joined on Mar 2007
@ Germany
|
#44
|
screen = SDL_SetVideoMode(800, 480, 16, SDL_SWSURFACE|SDL_FULLSCREEN);... whenever i updated partial rects i got bad flickering - this may be the cause of the flickering when the status display is being drawn at bottom - non-zero offset, small updaterects. [yes, it is strange, but that's the deal - all updates must be composited first, then drawn to screen in one big UpdateRect]
SDL_UpdateRect (screen, 0, 0, 400, 240)
Here's roughly how i'd imagine hacking the stylus to be usable for directional control:That's all for now. Excellent job so far!
Hack the SDL loop to ignore mouse position changes until mousebutton down (stylus down). Then track differential movement with the normal mouse control while leftbutton state is "down". To get fancy, you could add some inertia to the turning.
The motion i'm thinking of is similar to the page-scroll on a browser. A quick drag to the left - over say 1/4 of the screen, would turn player about 30-40 degrees - a quick 'jot' over half the screen would turn player 90degrees...
![]() |
2007-10-01
, 12:38
|
|
Posts: 693 |
Thanked: 502 times |
Joined on Jul 2007
|
#45
|
![]() |
2007-10-01
, 13:24
|
Posts: 437 |
Thanked: 90 times |
Joined on Nov 2006
|
#46
|
![]() |
2007-10-01
, 13:43
|
|
Posts: 1,743 |
Thanked: 1,231 times |
Joined on Jul 2006
@ Twickenham, UK
|
#47
|
![]() |
2007-10-01
, 13:45
|
|
Posts: 1,743 |
Thanked: 1,231 times |
Joined on Jul 2006
@ Twickenham, UK
|
#48
|
Is there any way of rotating the screen 180 deg (via an option or something) for us left-handed people :-)?
![]() |
2007-10-02
, 01:15
|
|
Posts: 693 |
Thanked: 502 times |
Joined on Jul 2007
|
#49
|
![]() |
2007-10-02
, 02:46
|
|
Posts: 693 |
Thanked: 502 times |
Joined on Jul 2007
|
#50
|
now. how do i hide from my wife for the next 5 hours....?