Commit Graph

57 Commits (05e0171dea6296ddc58027d1f49d488e798a00d5)

Author SHA1 Message Date
Joe Groff 77c8f38372 a little bit more rice on game-input.iokit 2009-05-08 19:16:45 -05:00
Joe Groff cd4530adca iokit game-input backend improvements:
- avoid some needless allocation when dispatching input events
- some gamepads claim to be pointers too; only match actual mouses
- don't mess with the calibration settings if the axis min/max attributes aren't available

also, throw a more helpful error when plist> fails
2009-05-08 18:47:44 -05:00
Joe Groff 66b1fdd916 oops. got the game-input reference counting backward. also, let go of the mouse state in cocoa backend when closing game-input 2009-05-08 17:22:04 -05:00
Joe Groff ba213bdc34 make open-game-input and close-game-input do reference counting. update demos to show this 2009-05-08 13:00:34 -05:00
Joe Groff 09e3e309d6 get dinput mouse support working 2009-05-05 18:36:15 -07:00
Joe Groff 5eb51aa0b3 docs for mouse words 2009-05-05 09:45:54 -05:00
Joe Groff 5d43551f08 mouse support for game-input 2009-05-05 09:45:43 -05:00
Slava Pestov 9bb70c2c4d Update usages of global ... change-at to use the new change-global combinator 2009-04-30 21:38:14 -05:00
Doug Coleman 65d76e6509 finish fixing the using list for windows.errors, more ffi bindings 2009-04-30 10:25:59 -05:00
Slava Pestov 60fe59d873 Fix game-input test to not run if the UI is not running on Windows 2009-03-27 18:34:06 -05:00
U-SLAVA-DFB8FF805\Slava 5d3c2c874a Get game-input to load on Windows 2009-03-24 03:58:11 -05:00
Slava Pestov a423c83e6d Add workaround for game-input crash 2009-03-15 23:11:35 -05:00
Slava Pestov 375c5e69b5 Various load-everything fixes 2009-03-07 01:22:21 -06:00
Slava Pestov c8d5e98898 Fix conflicts 2009-02-26 03:12:19 -06:00
Slava Pestov 4426526252 Fixing some things I broke 2009-02-25 23:30:30 -06:00
Slava Pestov ce1bc1d6ed Fixing conflicts from stack checker changes 2009-02-24 01:21:10 -06:00
Slava Pestov 91d0c4ed1f Fix conflict 2009-02-22 20:02:13 -06:00
Doug Coleman 7aa8e7320d use CONSTANT: 2009-02-22 18:00:43 -06:00
Doug Coleman e99dfc25e8 use CONSTANT: 2009-02-22 17:57:31 -06:00
Slava Pestov 88b401b383 Rename math.geometry.rect to math.rectangles
Remove math.geometry.points
Remove rect-loc and rect-dim words
2009-02-05 03:28:41 -06:00
Slava Pestov eaad0c7660 Updating code to use CONSTANT: instead of : foo 123 ; inline 2009-02-23 21:40:17 -06:00
Slava Pestov 411ba7473b Clean up some code to not use combinators.lib and sequences.lib 2008-12-17 19:52:47 -06:00
Slava Pestov c5160d76e9 Merge qualified, alias, symbols, constants into core 2008-12-17 18:10:01 -06:00
Doug Coleman 92928f6322 add using 2008-12-16 02:46:58 -06:00
Doug Coleman 7538928754 game-input doesnt need a backend, now loads dinput or iokit directly 2008-12-16 01:33:51 -06:00
Slava Pestov 43fe6c56a2 Windows fixes 2008-12-09 06:02:39 -06:00
U-SLAVA-DFB8FF805\Slava 0eee4f89d4 Mess around with tags 2008-11-17 06:59:17 -06:00
Doug Coleman ad890e8a31 if-empty changes 2008-09-06 17:15:25 -05:00
Joe Groff 15a8ff071c Load game-input backend at compile time 2008-08-31 11:00:26 -07:00
Joe Groff 10448f8097 game-input.backend: follow eval to its new home 2008-08-06 11:38:09 -07:00
Joe Groff a0a1d4728c Merge branch 'master' of git://factorcode.org/git/factor
Conflicts:

	extra/windows/com/wrapper/wrapper.factor
2008-07-29 21:10:39 -07:00
Joe Groff bbc3c01a8b clean up game-input.backend init so that loading a backend does not ruin the game-input-backend var and so that client code does not need to explicitly load game-input.backend itself 2008-07-29 19:53:00 -07:00
Slava Pestov 045f79d35c Merge branch 'master' of git://repo.or.cz/factor/jcg 2008-07-29 16:59:01 -05:00
Slava Pestov 6408b01e9d Add 'unportable' tag in place of hard-coded list of 'dangerous' vocabs in load-everything 2008-07-29 16:47:52 -05:00
Joe Groff 0ed6fb0555 Rewrite string>guid and guid>string in windows.ole32 so it can load on any platform. Add an init hook to game-input to put it back in the "off" state on image load. 2008-07-28 22:42:28 -07:00
Joe Groff d6db9897fa bi, is really a better name than bi+. Add analogous bi*, and tri*, words along with unit tests 2008-07-27 11:15:27 -07:00
U-VICTORIA\Administrator ab4d41169b add keys-array sequence wrapper 2008-07-26 22:35:40 -07:00
U-VICTORIA\Administrator f053c25875 doh... changing assoc out from under assoc-each = bad 2008-07-26 22:29:11 -07:00
U-VICTORIA\Administrator 1c7b117581 Avoid cloning in game-input.backend.dinput to improve performance 2008-07-26 22:20:17 -07:00
U-VICTORIA\Administrator 2c76f34ddf POV hat indicator for joystick-demo; fix POV hat handling in game-input.backend.dinput 2008-07-26 21:16:44 -07:00
U-VICTORIA\Administrator f0951c36f2 dinput: Do not unacquire the device after every read, otherwise keyboard does not work. Fix inaccuracy in c_dfDIJoystick2 definition 2008-07-26 20:02:06 -07:00
U-VICTORIA\Administrator b6e0faae05 handle reading from unplugged devices in game-input dinput backend 2008-07-26 12:15:23 -07:00
Joe Groff 79bf201a81 key-caps demo 2008-07-26 10:13:47 -07:00
Joe Groff d88e996733 game-input docs fixes 2008-07-25 21:32:50 -07:00
Joe Groff 9562452ccb MAIN: for joystick-demo. make it ok to open-game-input multiple times 2008-07-25 21:25:46 -07:00
Joe Groff 9724ac4a13 Joystick demo. iokit product-string cleanup. vectors > hashtables for tiny assocs 2008-07-25 20:31:37 -07:00
U-VICTORIA\Administrator ce1eda2fcd only report the axes actually on the device 2008-07-23 21:35:29 -07:00
U-VICTORIA\Administrator 73758b10c1 DirectInput adding, removing, basic reading devices works 2008-07-23 21:07:47 -07:00
Joe Groff 045c1ecf7e sketch out rest of game-input.backend.dinput 2008-07-22 19:55:22 -07:00
Joe Groff 690b744959 Merge git://repo.or.cz/factor/jcg
Conflicts:

	extra/windows/dinput/dinput.factor
2008-07-20 20:19:59 -07:00