ehouse
ddeac54995
Fix drawing highlighted cells on perimeter.
2007-01-20 04:30:02 +00:00
ehouse
e3f57647dd
use new perimeter feature and conditionally replace manual board
...
framing with it. Off for now.
2007-01-19 08:22:14 +00:00
ehouse
e10f6d2163
add five-way support for Tungstens; don't move cursor when keys are
...
meant for menu; redraw after hiding miniwindow when OS brings up
dialog;
2007-01-18 05:49:54 +00:00
ehouse
d22f65b78b
remove code to save bits behind miniwindow
2007-01-18 05:49:07 +00:00
ehouse
df2807e422
run svnversion on parent to catch changes in common or other shared dirs
2007-01-16 02:48:27 +00:00
ehouse
a056dad08c
keep track of last key down so can fake key up event when palm won't
...
be giving us one, e.g. when holding key results in a system window
coming up;
2007-01-12 03:34:43 +00:00
ehouse
f3feef27f7
fix problems created by key-nav changes: don't drop hardware scroll
...
keys, and redraw after key-repeat if either up or down handled.
2007-01-07 05:25:28 +00:00
ehouse
f8c772162b
up version to b3
2007-01-07 05:23:06 +00:00
ehouse
0a4f1d3f7b
add board_handleKeyRepeat, and call it from palm and gtk. This lets a
...
held nav key walk the cursor across the board.
2007-01-07 04:32:29 +00:00
ehouse
c423f04d0d
Don't show about dialog (with its alpha message) except when BT enabled.
2007-01-06 18:31:16 +00:00
ehouse
c5fc1acb3a
handle both keyUp and keyDown events, including dealing with devices
...
that don't generate the former. Break key-handling code into separate
function.
2007-01-06 17:50:43 +00:00
ehouse
c645534b83
Fix so IR-only multi-device build works again.
2007-01-06 16:46:45 +00:00
ehouse
bb0c8fbf75
2007 copyright in about box
2007-01-06 16:45:39 +00:00
ehouse
ac14760070
beta 2; redraw focus ring after redrawing tray buttons; move board
...
focus border so it coincides with regular border.
2006-12-21 07:55:19 +00:00
ehouse
bfda12516f
incorporate svn version number in .prc file name
2006-12-20 04:57:36 +00:00
ehouse
b551142f5f
When palm button loses focus to board obj, post event to be handled
...
after focus event, and on handling it inval rect of focus ring on
button. This fixes drawing glitch where palm remembers pixels behind
focus ring but they're not right.
2006-12-20 04:49:24 +00:00
ehouse
bcf80fcdc9
place initial focus on scoreboard since OS insists on putting it somewhere. Need to fix that.
2006-12-20 04:16:22 +00:00
ehouse
4ac7cf2902
fix for non-BT compile
2006-12-20 04:15:40 +00:00
ehouse
c8259f8eeb
prevent tray buttons overwriting tray by removing border and moving same distance to right
2006-12-20 04:14:41 +00:00
ehouse
f50807d0a9
add new file palmdbg.c
2006-12-20 04:13:30 +00:00
ehouse
e5f256867c
BT work is now 4.3. Nav work moves into beta as 4.2.
2006-12-13 05:03:19 +00:00
ehouse
e25caaba1a
add hand-coded implementation of HsNavDrawFocusRing. This works, but
...
should be replaced by generated code.
2006-11-29 04:11:24 +00:00
ehouse
3bd951aca5
back out unintended change
2006-11-27 04:52:27 +00:00
ehouse
152d674141
include Hs (nav) files for ARM build too
2006-11-27 04:50:53 +00:00
ehouse
a506708740
add type for ui color table; get a jump on Hs nav functions
2006-11-27 04:48:28 +00:00
ehouse
9bec10dee5
temporarily comment out for arm code that won't compile on arm
2006-11-27 04:40:18 +00:00
ehouse
2363077d7e
swap focus-related event data, and include the UI color table call used to
...
determine the color of self-drawn focus elements. I can't draw the nav
ring on ARM, but otherwise five-way nav works on arm with this checkin.
2006-11-27 04:39:36 +00:00
ehouse
d7ae7b73da
get rid of initial focus object for main board
2006-11-27 01:07:22 +00:00
ehouse
c754d73770
When alt key pressed cursor can move onto occupied squares it normally skips.
2006-11-22 13:49:14 +00:00
ehouse
b23d51fba4
Draw focus differently in tray if whole thing has it, to include borders
...
between the tiles.
2006-11-17 13:46:06 +00:00
ehouse
74ccc0ed34
When "dived" focus reaches and crosses border of object, return as if
...
not handled. This causes the platform to handle the key event itself,
typically by moving the focus to the next top-level object.
2006-11-17 13:41:13 +00:00
ehouse
56f64f6f46
Remove old focus-change callback; use extended handleKey API to allow
...
Palm to own all top-level focus change decisions (in accord with fnav
resource)
2006-11-14 06:54:14 +00:00
ehouse
427c433e2a
Draw all focus indications ourselves: no more broken Palm API. Draw a
...
thick blue rect around board, and color all tiles and score positions
within the draw routines.
2006-11-14 06:52:11 +00:00
ehouse
aaa6687ef8
tweak prefs checkbox text: covers remote as well as robot players.
2006-11-14 06:49:20 +00:00
ehouse
b8de004286
reorganize fnav resource for main board, using rows. Allows for
...
faster travel between the main elements.
2006-11-14 06:48:46 +00:00
ehouse
f9dcd1820a
Add to draw APIs of individual elements (e.g. board cells) whether
...
they're focussed so that they can draw that during rather than after
everything else. On palm, use this to draw focus using the system
selected color rather than with the blue nav rect. Since a new param
was too much, add new enum type CellFlags and pass as bitvector to
draw APIs.
2006-11-12 14:36:15 +00:00
ehouse
09598e1290
fix compile error when FIVEWAY not on.
2006-11-12 14:29:35 +00:00
ehouse
c06df68133
fix crash when FIVEWAY not on.
2006-11-12 14:28:43 +00:00
ehouse
1d29511733
Force file logging on to report an assertion failure.
2006-11-11 22:53:30 +00:00
ehouse
4e7ed26704
Fix messages getting dropped when remote device isn't connected by, on
...
getting a new connection, making a callback that calls resend_all().
This means a lot of duplication, but duplication is free with
bluetooth. The underlying problem is that packets are reported as
sent not when acked by the other side, but when passed to a lower
level that may not be connected at all.
2006-11-11 22:52:39 +00:00
ehouse
60611d9a2c
Add missing question to phonies warning message.
2006-11-11 22:45:13 +00:00
ehouse
c91847f56f
When moving focus through tray, skip empty space; when through board,
...
skip cells with tiles permanently played. Space char raises focus but does
not move it laterally.
2006-11-09 06:05:40 +00:00
ehouse
211271d6be
add palm_util_notifyFocusChange to handle focus transitions away from
...
xplat code
2006-11-08 05:06:51 +00:00
ehouse
25eb722682
function turning object id constants to strings for logging
2006-11-08 05:04:13 +00:00
ehouse
005fd92fd4
More progress on one-handed navigation: fix ncurses board clipped to
...
bottom of tray; add focus-related params to draw*Finished routines
(and simplify to one) so platforms don't have to save from Begin
routines (and stop palm doing that); check version of saved game, and
handle case where older binary tries to open newer version; redraw
Palm tray buttons after focus change to stop focus-rect ghosting; fix
annoying overlap in saved games dialog; palm version goes to a3.
2006-11-05 16:54:18 +00:00
ehouse
b0102f8baa
Lots of progress on one-handed navigation: add gadgets to stand in for board
...
scoreboard and tray on palm; make center drill into the focussed object and
spacebar come back up then move the focus among them. Integrate with other
focussable objects on main form. Go from separate drawCursor routines to
same for all three, with cursor only visible when focus is drilled down.
On curses, add a hilite rect routine that can be called after text is laid
down, and use for cursors.
2006-11-03 06:23:54 +00:00
ehouse
7526768939
Simple fnav resource for main form: a start
2006-10-30 00:28:46 +00:00
ehouse
3b2a6b0c7f
Use color rather than period to separate score from tiles left in
...
scoreboard.
2006-10-29 18:24:50 +00:00
ehouse
6b1fc7e5e4
Fix crash on pre-fiveway palmos where FrmGetFocus always returns -1;
...
add new preference for whether small value nums are drawn in tiles in
tray.
2006-10-29 17:41:14 +00:00
ehouse
648b986376
Many many changes improving newgame dialog by using a three-way rather
...
than two-way enabled state, but mostly about getting focus ring
working for five-way-equipped devices. Add fnav resources to the two
dialogs with gadgets, and code so the gadgets are included in the
focus rotation. The move to three-way means that disabled controls
can visible while excluded from the rotation. There's cleanup and
polish to be done still, and five-way navigation doesn't work for the
main form yet. No changes to bluetooth at all.
2006-10-28 14:48:08 +00:00