Commit Graph

21 Commits

Author SHA1 Message Date
Ray Greenwell bd80c348eb The great Interval revamp.
There is no more SafeInterval, instead Intervals can be constructed with a RunQueue to use for expiring.
PresentsDObjectMgr implements RunQueue.
Client has a getRunQueue() method to get the client side RunQueue.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3283 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-12-22 19:23:00 +00:00
Michael Bayne a9720fd905 LGPLed the library. Hello world.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3099 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-27 02:21:06 +00:00
Michael Bayne 7457e46374 MacOS safety project, phase 1.1.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2537 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-03 00:12:12 +00:00
Walter Korman a5c348a775 Added support for specifying the delay in milliseconds before a pressed
key begins to auto-repeat.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2170 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-17 01:33:34 +00:00
Walter Korman fbb5fb841a Don't post the key press command when the repeat interval fires if the key
has been released.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2165 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-16 21:18:02 +00:00
Walter Korman 0a5104a70c Allow specifying the rate at which individual key presses are to be
repeated.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2133 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-14 00:53:38 +00:00
Walter Korman de6c4371b9 Initial version of linux (working) and Windows (not yet working) native
libraries for enabling and disabling keyboard auto-repeat.  Restored
auto-repeating in our own KeyboardManager, and disabled the interval used
to differentiate between a "real" and "fake" key repeat since we believe
we can now do without it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2107 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-12 00:26:39 +00:00
Ray Greenwell 800a3e8a80 Don't swallow keys unless we dispatched them to a puzzle.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1928 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-08 08:17:35 +00:00
Walter Korman dea46e4cc0 Assume the keyboard focus, or relinquish it, when we're enabled or
disabled respectively.  Sanity-check before adding ourselves as a window
focus listener when enabled to make sure we don't add ourselves more than
once.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1890 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-04 22:28:58 +00:00
Walter Korman 7b9f0332f1 Cleaned things up so that a single keyboard manager is to be constructed
and used throughout an application that cares to make use of its
functionality.  Allow registering key observers that are notified of all
key presses while the keyboard manager is active.  Clear things out
properly when the keyboard manager is disabled or reset.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1884 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-02 00:59:00 +00:00
Michael Bayne 4bababc95e Removed smoothing for the time being. Now a key up registers immediately,
but we are saddled with the key repeat delay for rapid sideways movement.
This will eventually all change when we have native libraries for turning
off key repeat.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1797 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-09 08:17:02 +00:00
Walter Korman 4653b0b0a7 Absorb key-typed events and be more cautious about when to dispatch key
events.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@880 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-01-19 06:07:20 +00:00
Walter Korman e2fbfdf38c Reworked focus handling so that the keyboard manager only loses focus when
(a) the target component is removed, or (b) the window containing the
target component loses focus.  Moreover, the keyboard manager now steals
keys from any other components (explicitly irrespective of the AWT or
Swing notion of keyboard focus) via the KeyboardFocusManager as long as
it's enabled and has the focus as previously defined.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@875 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-01-19 01:19:56 +00:00
Walter Korman 0f27719f0e Repackaged keyboard manager related classes for their new location in
com.threerings.util.  Moved RobotPlayer into util package from yohoho.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@873 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-01-18 23:32:15 +00:00
Walter Korman bbce846874 Whitespace changes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@872 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-01-18 23:12:09 +00:00
Walter Korman 4e3d7d9ece Properly handle a key press followed by seemingly-impossibly-fast,
night-instant key release.  Added optional debug logging of key events at
the KeyboardFocusManager level for good measure.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@853 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-01-12 02:37:57 +00:00
Walter Korman 04cc7acdb3 Disable debug logging by default.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@841 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-19 23:33:02 +00:00
Walter Korman e76c0975ca Clean-up and easier toggling of debug logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@825 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-17 22:13:19 +00:00
Walter Korman b9b0d9cd69 Revised counter piece placement and end game determination.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@775 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-14 01:14:50 +00:00
Walter Korman d31ebd2b54 Added facilities for a simple robot player to optionally run rampant in
the sword game.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@756 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-12 18:09:20 +00:00
Walter Korman 0432219e99 Added row at top of board to show floating block entry and killing piece
placement.  Went back to not allowing the player to be killed by shaft
pieces.  Initial work on improved keyboard input.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@755 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-12 16:55:06 +00:00