auria
27a1509532
Allow navigating with TAB in menus
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13332 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-07-23 22:53:21 +00:00
auria
a27853a592
Apply patch by Lilian Gimenez to support gamepad triggers in input code
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13054 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-07-01 22:50:59 +00:00
auria
524c0c6a59
Add shortcut to easily test swatters
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12982 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-06-26 01:23:26 +00:00
curaga
97b5069c39
Bind wireframe mode to the home key
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12841 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-06-02 10:24:41 +00:00
curaga
57c3cbae3e
Space cleanup pass on the headers
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12817 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-30 19:47:39 +00:00
curaga
1c48d76343
Some const & visibility fixes
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12803 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-30 10:19:55 +00:00
curaga
b56bf4dc53
Remove trailing space, git doesn't like it
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12797 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-29 22:04:35 +00:00
hikerstk
6e00d4e141
Fixed compilation errors and warnings on linux.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12791 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-28 06:21:41 +00:00
hikerstk
b3e7a7ebbf
Applied Unitraxx's patch to save GP. At this stage no GUI support
...
was added.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12782 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-24 23:38:26 +00:00
hikerstk
7ac899ade7
Refactored wiimote handling, splitting into two separate files.
...
Also added non-threading support (while it is too slow/too high
latency it's useful for debugging).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12781 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-22 11:28:57 +00:00
hikerstk
6d097b6ad5
Added --wiimote-debug command line option to print raw values read
...
from a wiimote.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12773 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-16 06:50:41 +00:00
hikerstk
2a0e456dbf
Fixed wiimote handling on OSX.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12766 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-15 12:22:16 +00:00
hikerstk
47675eac1f
Fixed #951 - use Log:: , thanks to alasin.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12723 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-03 07:07:19 +00:00
auria
1b96d33a50
Try to ignore accelerometers on linux systems
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12675 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-19 22:36:25 +00:00
auria
816a7e9bbe
Apply patch by marius1309 to update printfs into log, thanks\! Accidentally got merged into some changes of mine to make the battle againt Nolok a little harder. Those changes are incomplete, but good to go for now, more tweaks may be done later
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12665 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-17 00:40:05 +00:00
hikerstk
9dfb6c4ccb
When pressing ctrl-F8 in artists debug mode only make player karts
...
invisible. This allows to take screenshots with AI (and if you don't
want AI, just race without AI).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12588 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-03-27 21:11:12 +00:00
hikerstk
de2112f101
Removed debug code (2nd player would also get zippers
...
in artist mode when pressing F7).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12554 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-03-15 05:35:03 +00:00
hikerstk
5445cec7ba
Enabled motion blur shader in split screen multiplayer.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12552 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-03-14 21:04:48 +00:00
hikerstk
6c10c92838
Avoid that wiimote events are handled as digital events (which means
...
that the actual steering value will be changed over time, not immediately,
resulting in a delay). Fixed by avoiding +-32767 as input, which indicates
a digital event. Note that the same problem likely exists for gamepads!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12543 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-03-07 13:06:47 +00:00
hikerstk
502042432c
Big refactoring: the camera for a kart is now not part of the
...
kart anymore, instead they are managed by static functions
in Camera. This allows us to have several cameras for one
kart now (can be useful for debugging; or for three-screen setup
where you have one monitor for left, right, and center; or potentially
for an back mirrir). Also 'rain' is moved into camera now (where it
belongs more naturally then in kart), and several loops over all
karts searching for a camera are now replaced by simpler loops over
all cameras (though a few loops were added to handle code for all
cameras now, while before there as no loop).
Main advantage: handling post-processing will be easier to do now.
Also this fixes a bug: in split screen mode, when a kart is eliminated
(ftl) the camera for this kart was supposed to show the
leader facing backwards, which didn't work (it just showed the previous
location of the elimintaed kart) - now it works.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12541 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-03-06 22:08:41 +00:00
hikerstk
3485ae2d8c
Fixed screen shot handling on windows.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12534 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-02-28 11:51:19 +00:00
hikerstk
c18ccef5b3
Added sin and asin in addition to linear and square mapping of
...
wii-rotation to steering value, all can be combined using weights.
Code is not tested (sorry, no access to wiimote atm).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12527 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-02-24 22:09:15 +00:00
funto66
43a37aee1b
Only enable Christmas mode in December, except --xmas=1 is given in the command line
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12465 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-02-09 15:01:58 +00:00
hikerstk
9a4d6f1cda
Some adjustments to steering curve.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12460 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-02-07 21:49:38 +00:00
funto66
dd34c42bd1
Fix compilation with USE_WIIUSE
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12459 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-02-06 22:29:19 +00:00
hikerstk
97e8fddd7e
Added --wii command line option, which shows the connect-wiimote dialog
...
at startup.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12456 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-02-05 11:11:25 +00:00
hikerstk
d12254237d
Made wiimote settings configurable in the user's config file:
...
wii-mote max is the 'angle' (0-128) at which full steering is
reached, and a weight factor to shape the steering depending on
wiimote angle, which adds up a weighted components of a linear
(weight=0) and quadratic curve (weight=1).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12447 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-02-03 21:50:24 +00:00
funto66
37372f49b3
Wiimote: use HOME for pause + hack to fix accelerometers reporting for some people (needs a better fix)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12430 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-27 09:07:23 +00:00
funto66
3ee8b0925e
Fix wiimotes cleanup crash when several wiimotes are connected
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12392 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-19 22:37:49 +00:00
funto66
7a223cc9b5
Use quadratic response curve for wiimote steering
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12379 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-17 22:03:06 +00:00
funto66
7e9499d986
Added wiimote accelerometer handling - finally\!
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12377 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-17 20:06:06 +00:00
funto66
823a0d266f
Handling wiimote buttons
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12367 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-16 22:37:21 +00:00
funto66
e0725de73b
Refactored the wiimote manager - still WIP
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12363 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-15 22:29:29 +00:00
auria
63aea86164
Blindly attempt to fix a bug I can't reproduce
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12337 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-06 00:01:16 +00:00
funto66
d814a8c676
Fixed compilation with USE_WIIUSE + tests with the nunchuk
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12293 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-20 10:50:58 +00:00
auria
cf4dd96871
Fix memory overflow
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12215 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-08 22:35:27 +00:00
hikerstk
05cec70d86
Fixed 'map fire to select' option by also work for gamepads, only
...
accept fire (and not any event like steering), and remove setting
the flag each frame.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12191 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-06 23:43:09 +00:00
hikerstk
fe20c7d6a1
Accept 'fire' key in addition to 'select' to select a kart.
...
Auria, please review for potential inclusing in 0.8.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12187 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-06 10:58:04 +00:00
hikerstk
42761853d9
Removed plunger-in-face testing when F1 is pressed.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11855 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-02 05:18:47 +00:00
auria
844cd1692c
Potential fix for #706
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11787 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-28 03:40:21 +00:00
hikerstk
ddea03ebe5
'Animated' the plunger-in-face somewhat, and additionally reduced
...
plunger-in-face time somewhat.
Atm you can test by pressing F1 in a race (which I'll remove soonish).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11761 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-25 21:51:07 +00:00
auria
6f88c78753
Work around special keys annoyance where control key presses are eaten by my window manager
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11514 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-23 01:50:21 +00:00
auria
fe03de6851
Only save screenshot on keydown, not on keyup, and also improve date formatting
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11455 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-01 00:08:35 +00:00
auria
90b28e86f1
Remove leftover code from my attempts at findind a working key combination
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11453 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-31 23:33:01 +00:00
auria
bf18201b30
Add feature to save screenshot. Try Right-Alt + PrintScreen
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11452 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-31 23:28:23 +00:00
auria
6147c887a9
Allow skipping the cutscene
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11329 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-24 01:39:49 +00:00
hikerstk
5963f31079
Removed physics.hpp #include from world.hpp.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11213 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-08 07:07:15 +00:00
hikerstk
c15528f903
First version of demo mode. Use --demo-mode T to start
...
a demo after T seconds of idle time, --demo-tracks a,b,c
to specify a list of tracks to use for demo mode, --demo-karts
to specify the number of karts.
This is WIP, esp. it crashes if ESC is pressed during a race
(other keys will successfully return to main menu).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11189 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-07 00:10:33 +00:00
auria
099cbce6ce
Improve previous fix for bug #542 , this one should handle correctly when multiple gamepads are plugged
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11136 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-19 01:31:05 +00:00
auria
ea908cb76f
Fix player parameter being NULL in input module when starting game with keyboard/mouse but playing with gamepad
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11135 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-19 01:23:48 +00:00
auria
ffd1432fd0
Fix gamepad navigation in menus
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11131 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-19 00:01:44 +00:00
hikerstk
ebbc1a71d8
Introduced an 'abstract kart' class, which is used to
...
de-couple kart implementation and its interface. This
significantly reduces compile time when changing kart.hpp,
but is at this stage still work in progress.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10997 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-19 20:21:11 +00:00
hikerstk
629f9a27e2
Removed dependencies on controller.hpp from kart.hpp (to
...
reduce compile time on controller changes).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10952 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-08 22:56:33 +00:00
hikerstk
3fc43d4d14
Refactored replay by splitting it into one base class, and dedicated
...
classes for recording and for replaying. Added compression (by use of
interpolation) settings to stk_config - atm only using a certain
frequency (delta-t setting in stk_config) is used.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10904 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-28 22:33:49 +00:00
hikerstk
bce6113fd7
Added first version of (uncompressed) replays - atm only
...
kart positions and rotations are saved.
To save a replay, press ctrl-F10 which will create a file
in the stk config dir 'trackname'.replay .
To replay, use --ghost command line, and select the
track with the same name (at this stage the replay is
loaded even if number of laps and difficulty is different).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10897 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-27 05:52:17 +00:00
hikerstk
2a741992e2
Yet another fix to linux compilation.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10685 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-16 21:44:19 +00:00
hikerstk
351f766ca4
Made KArtProperties member of STKConfig a pointer,
...
which removes the dependency of kart_properties.hpp
from stk_config.hpp, hopefully reducing the compile
time when kart_properties.hpp is changed. Had to
add many missing includes all over the place as a
result :)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10683 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-16 05:59:51 +00:00
hikerstk
87865b7dec
Removed unnecessary include of kart.hpp from world.hpp.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10572 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-04 05:32:19 +00:00
funto66
9dc03ff36d
Moved the wiimote update loop in a separate thread
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10543 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-02 00:06:11 +00:00
funto66
254fa42b7c
Now we can use the buttons for the wiimote, but the refresh is horribly slow...we probably need to put the update loop in a separate thread
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10541 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-01 23:24:42 +00:00
funto66
61a6b6fbf0
Wiimote is now in the device list :)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10540 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-01 22:12:35 +00:00
funto66
569308a730
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10539 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-01 21:19:13 +00:00
auria
00c477078b
Remove outdated declaration in input manager
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10538 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-01 19:37:31 +00:00
auria
27cfa16820
Don't use in-game keys for menus, some people may setup their gamepad to use a key that's pressed by default for acceleration
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10395 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-10 20:06:43 +00:00
auria
b0270f69d6
Show in the options when many similar gamepads are connected
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10394 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-10 19:47:59 +00:00
auria
3e431d6895
Don't register a keypress when a gamepad button is released in the menus
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10368 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-07 17:06:32 +00:00
auria
92eb0ebd2a
Ran a small bash script to remove all of those annoying strings. The only thing they gave us were the need to rebuild after committing
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10363 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-06 18:43:36 +00:00
hikerstk
2c33ed75ed
Merged the physics branch back to trunk. There should be no change at
...
this stage for users.
The physics branch added a few new stability options (which are disabled
by default), fixed bug and reproducing history files when using physics
replay, using --log=file command line option. See log on the physics
branch for full details.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10292 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-01 01:14:10 +00:00
hikerstk
4f6144b890
Fixed handling of multiple gamepads on windows on non-english systems
...
(the name of the driver is translated, so the if condition would not get
triggered).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10221 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-17 03:08:57 +00:00
hikerstk
fc94795eac
Don't give rubber balls in debug mode in three strike battle.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10049 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-26 21:18:50 +00:00
auria
d04bc58413
Quite a bit of work on Doxygen docs to contain an overview of the STK source code base
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10039 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-25 17:46:14 +00:00
hikerstk
22bde657f8
Fixed crash when pressing F8 in main menu ( #477 ),
...
and some minor code cleanups.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10022 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-20 02:23:47 +00:00
hikerstk
5993f32f30
Allow to move the attached camera to all AI karts in profile mode
...
(press keys '1' to '9' to move the camera to kart 0 - 8).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9963 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-10 04:30:18 +00:00
hikerstk
9410a9bf30
Cosmetic changes only.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9939 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-05 04:12:00 +00:00
hikerstk
18f6f6de17
Removed debug code which should never have been committed.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9882 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-22 05:43:31 +00:00
hikerstk
3185c5fcc9
Cleaned up world.hpp:
...
- sorted declarations so that all virtual functions
are together.
- Renamed *_IDENT variables to IDENT_* so that the
naming is consistent
- Using std::string& for IDENT_* instead of char*
- Use pointer for out variables in getDefaultCollectibles.
- Moved m_fastest_lap variable from world to LinearWorld.
- Many many cosmetic changes to follow our style guide.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9852 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-16 01:49:38 +00:00
auria
256f611bbd
Fixed resetAxisDirection resetting buttons that happened to have the same ID as the axis being resetted
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9743 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-04 23:01:59 +00:00
auria
2903c4435e
Make bubblegum have much cooler (and nastier) effect
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9719 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-03 18:07:18 +00:00
auria
5647c5dadc
Allow pausing game from gamepad
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9560 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-19 01:40:27 +00:00
hikerstk
afb3728995
Added first test version of 'rubber ball' (which might replace
...
the anchor). Known bugs: atm it does not yet bounce (it follows
just the drivelines and might be partly in the track); the first
kart can't avoid it (long term breaking might allow you to avoid it);
it might hit another kart first and explode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9302 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-20 00:39:32 +00:00
auria
d8815794b9
Fixed a lot of old logging code left from before the log level was a bit mask. We don't have too many log bits so atm they are classified a lot in 'misc'
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9276 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-15 23:39:09 +00:00
funto66
de401bc234
Added a first (unfinished) version of a graphical profiler
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9207 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-09 19:13:17 +00:00
auria
9c76e99106
Enable artist debug mode tricks in multiplayer too
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9131 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-02 00:31:26 +00:00
hikerstk
da8ec214ce
Added a very first version of a swatter (or inflatable hammer).
...
Details are in the wiki (http://supertuxkart.sourceforge.net/Items ).
Note that the model is _obviously_ a placeholder, and I used
the icon for the bomb (which isn't used in game atm) for the
swatter. I hope someone can provide a better model and icon.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9011 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-22 12:27:48 +00:00
auria
6e4cee9341
Includes cleanup; especially avoid including in headers, creating implicit dependencies and horrible chains of recursive includes. Avoid iostream when possible because this header is not small
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8749 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-29 19:52:24 +00:00
auria
30435bbde4
Highlight gamepad when pressing its keys, to help the player tell them apart
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8683 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-23 20:51:17 +00:00
auria
5b073ca9d0
More work on 'thou shalt not include irrlicht.h everywhere carelessly', plus add debug checks to tinygettext in a desperate attempt to make STK Arthur_D-proof
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8662 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-22 18:41:52 +00:00
auria
a37008d014
More work on 'thou shalt not include irrlicht.h everywhere carelessly', plus add debug checks to track.hpp in a desperate attempt to make STK Arthur_D-proof
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8661 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-22 18:31:25 +00:00
auria
d501753ef2
Clean up irrlicht includes; avoiding including the huge irrlicht.h when we only need one specific class, especially in header files; use forwards when possible
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8660 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-22 18:03:28 +00:00
auria
15cdaf04bd
For ticket #82 : start adding the infrastructure to show in the UI which gamepad is which
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8566 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-14 00:30:30 +00:00
auria
4c2d0215a0
Fixed leak + blindly try to fix disabling devices not working as seemed to be reported
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8534 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-08 00:56:09 +00:00
auria
8e6c7506db
More attempts at working around the microsoft-pc-joystick-driver issue
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8458 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-25 15:46:04 +00:00
auria
f57bff83ea
Number gamepads on Windows to force different configurations
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8416 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-22 23:01:21 +00:00
hikerstk
4d6f2e27e5
Fixed compiler warnings.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8327 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-13 04:36:18 +00:00
auria
6346188a64
Hat support is now believed to be there
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8323 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-13 01:47:06 +00:00
auria
02ddcc961b
Blindly trying to add hat support (I don't have hats so can't test)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8085 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-27 02:03:46 +00:00
auria
830c224e2d
Fixed crash when using debug mode from menu
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7979 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-17 21:16:33 +00:00
auria
3a3619750a
Artist debug features are now enabled even in release builds, but disabled in config by default
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7780 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-02 00:04:13 +00:00
hikerstk
4d8b8e5dea
Renamed ptr_vector to PtrVector so that is follows
...
our naming convention, also changed contentsVector
to m_contents_vector, and removed unused add method
(which is using an iterator, which would not work
when using aligned_arrays on windows anyway).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7602 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-03 22:20:53 +00:00
auria
958cd865fe
Enhance the feature to hide race GUI so that it now also hides karts; useful to take track screenshot
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7586 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-02 23:33:13 +00:00
auria
368a7ebd13
In single-player mode, the user can now use all input devices
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7518 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-24 01:41:55 +00:00
auria
009960fc8a
Clean up call to fribidi, add capabilities to insert values to the _ macro
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7508 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-23 23:39:10 +00:00
auria
073757f53e
Fixed gamepad glitch I introduced
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7504 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-23 21:04:36 +00:00
auria
7b1bb38b9f
Taking inspiration from Grumbel's bug report, ignore all gamepad axes that always remain on their original value (even if this original value is maximum). This should fix several issues with bogus axes (especially on Linux) and as far as I can see doesn't have any ill effect
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7498 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-23 02:35:48 +00:00
mbjornstk
015443f582
Set props as per SVN-CONFIG for .[ch]pp, AKA SVN props clean up day. :)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7493 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-21 01:54:38 +00:00
auria
3eeca13ce3
Add key to get free nitro + minor tweaks to particle code
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7290 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-06 01:01:12 +00:00
auria
fb8c9edf5e
Add gamepad button info to --gamepad-debug, from our current bug reports this looks like info we need
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7173 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-28 00:34:26 +00:00
mbjornstk
47a7f77b33
Wrap code with {}. g++ dislikes new variables in switch/case if labels follow.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7137 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-22 01:00:56 +00:00
auria
a0eed0f31c
Fix compile warning
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7135 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-21 23:39:20 +00:00
auria
53e4546b09
Fixed debug mode build
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7055 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-17 18:55:34 +00:00
hikerstk
b232fa2f56
Bugfix (pressing F10 when no game is running could crash).
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7048 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-17 12:17:13 +00:00
auria
d725d5daea
Added a few missing copyiright statements. More to come most likely
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7031 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-15 22:56:57 +00:00
auria
347d73cfd1
Fixed more memory leaks
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6965 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-12 02:01:23 +00:00
auria
c6b61f8a55
Add hidden feature to remove the race GUI: will be helpful to take track screenshots.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6867 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-07 00:28:13 +00:00
auria
3543dc4f86
Fixed warning (and, on the way, make the code slightly faster)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6774 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-29 17:01:58 +00:00
hikerstk
7ec971309a
Fixed continuous warnings message "Ignoring '...', you needed to join earlier to play!"
...
This is caused by polling the joystick device, and the joystick events triggering
the message. For now the message is not printed if the joystick value is inside
the deadzone value for the joystick (this means that the deadzone is tested at
two locations - once in input manager to avoid the message, once in input_device
- but the latter is not triggered in this case since player is NULL). Not ideal,
so a better solution would be welcome.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6740 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-28 11:39:09 +00:00
hikerstk
53e75bfaa8
Made getGamePadFromIrrId slighlty more efficient, added
...
some comments to follow our style guide.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6739 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-28 11:28:07 +00:00
hikerstk
f21ede30e3
Fixed bug 3090931: in some circumstances the key bindings for
...
the 2nd player would become the default, so if the first player
presses 'select' to select a kart, instead a new kart was added.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6738 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-28 10:21:36 +00:00
hikerstk
148d09c4ba
Hopefully fixed gamepad related issues (esp. bug 3114440 - can't assign axis+0).
...
Simplified code somewhat.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6729 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-25 21:53:34 +00:00
auria
f18ead6820
Show wanring dialog when trying to use shift as a key binding
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6721 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-25 02:16:21 +00:00
auria
466e65b3d7
Renamed method hasBinding and changed its docs, both were misleading
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6666 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-20 19:10:43 +00:00
hikerstk
b898032c57
Fixed crash when reading in old-style input files.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6581 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-15 22:08:51 +00:00
hikerstk
732f8e0c61
Fixed handling of [] in linux: if a key code is 0 (which is the case on
...
linux for [] and other keys) the unicode character is now used to
identify the key. This solves displaying the key code in the GUI, and
also to handle keys with identical key codes (0) properly.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6580 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-15 21:55:50 +00:00
hikerstk
fc202a57f5
Some code cleanup: made input data structure to follow the m_
...
notation, removed unnecessary include.
Added new field to input that stores the character (i.e. the
visual character) of a key (but it's not used yet).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6504 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-11 20:59:49 +00:00
auria
1f147f3544
Fixed crash when using flying keys (I/K) outside of a game
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6493 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-10 16:54:08 +00:00
hikerstk
6c2eb260f0
Added (currently commented out) debug feature that F1 will
...
force the first kart to be rescued (which can be useful
to find places where the AI gets into a: rescue, drive,
crash, rescue-to-same-place,... loop).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6476 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-09 06:17:07 +00:00
auria
9a399a3bda
At everyone's request, including Grand Master Joerg, improved fly hack ;) The controls are now simplified : no more J key, just I for up up and K for down. Also, it is now possible to land back on ground : simply go down until to hit the track. Also, the track also gains gravity back when rescued. Finally, the back key is now a break instead of moving backwards, this should be more useful during testing
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6474 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-09 02:16:41 +00:00
auria
92e7be10d3
Started adding option to disable gamepads, this will allow shutting up gamepads that have soemthing constantly pressed
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6430 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-08 01:26:31 +00:00
auria
8ea72b1fa3
Added secret debug feature (hint : build in debug more and try keys JIK)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6334 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-25 23:07:35 +00:00
auria
f5f48d5861
Fixed binding conflict detection being based on name; really verify their values, not only their names
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6316 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-23 21:27:56 +00:00
hikerstk
199356463d
Fixed F12 (display FPS) handling so that it would only trigger on
...
pressing the button, not (again) on releasing it.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6030 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-16 23:29:17 +00:00
hikerstk
0084cd6a33
More NoCopy.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5944 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-09 05:28:18 +00:00
auria
244b40bfbf
Added support for deleting added keyboard configurations
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5929 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-08 22:40:54 +00:00
hikerstk
32a7186320
Bugfix: avoid crash if any of the special debug keys (F1, F2, ...) is
...
pressed when no race is on.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5724 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-04 22:47:36 +00:00
auria
3a15458079
Fixed leaving game in multiplayer kart selection screen
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5550 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-24 18:18:30 +00:00
auria
154a733725
Applied patch by Lilian Gimenez to correct input mode in dialogs
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5496 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-10 23:45:14 +00:00
auria
2cd92bb6af
Fixed issues with press a key dialog - the keypress was considered after the dialog had been closed. fixed that by closing dialog only when key is released
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5446 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-15 19:49:59 +00:00
auria
36303b806d
Fixed conversion from arbitrary ints to enum members. Now using enum names properly.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5411 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-07 23:29:40 +00:00
auria
ea42e26e8b
Removed unused input mode LOWLEVEL (seems to be a legacy from older versions; I have no idea what it's for)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5406 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-07 17:23:15 +00:00
auria
1b20105224
includes cleanup in input manager
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5405 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-07 17:20:36 +00:00
auria
0bb238e66a
Removed pointer visibility handling code from the input manager, it has nothing to do there and caused bugs (e.g. hiding cursor during input sensing)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5404 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-07 17:17:07 +00:00
auria
d1ac9142a3
Fixed joinging multiplayer game
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5373 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-04 01:02:56 +00:00
auria
16e3988ddd
Another major update to the input configuration screen. There are now separate configurable keys for menu navigations. Conflictm detection was not implemented back yet; multiplayer gameplay seems broken too. To be continued
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5371 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-03 23:37:38 +00:00
auria
c5b50e5a5c
Major update to input handling code to support our #1 feature request : menu navigation should not be tied to accelerate/brake/steer, there should be keys especially for menu navigation. Note that the code is not yet complete, namely you cannot configure the menu keys
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5369 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-03 18:56:55 +00:00
auria
4356939ca2
Minor cleanup
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5365 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-03 17:35:52 +00:00
auria
0aef68f6ba
Fixed glitch that appeared in the new input configuration screen (I actually fail to see why it worked before)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5363 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-03 17:19:23 +00:00
auria
1b3ea64041
Initial incarnation of the new input configuration menu. More to come
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5349 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-02 19:39:09 +00:00
hikerstk
dcdb61c663
(Hopefully) fixed crash when a key is pressed after the end of the race.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5343 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-02 13:56:05 +00:00
auria
17d871732d
Fixed typing player names when some letters are mapped to accelerate/brake/fire/etc... in some keyboard config. identified a FIXME and cleaned up another bit of code on the way
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5341 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-02 00:22:35 +00:00
auria
b11285ae76
Minor improvements to invalid input detection
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5335 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-01 19:35:51 +00:00
hikerstk
ac42071c82
Moved PowerupType into PowerupManager (some minor work on
...
weights for powerups started, but nothing more than some
declarations).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5309 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-28 13:17:02 +00:00
auria
8a8408bb23
Added back support for displaying messages in the GUI (for instance when an old config file is found; though this won't actually happen for the 0.6->0.7 transition since it went from LISP to XML)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5259 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-25 01:21:53 +00:00
auria
2810193fb2
Lots of small changes to make the output Doxygen file much more useful
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5249 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-23 20:36:13 +00:00
hikerstk
f1fd38cbf3
Added (for testing) new explosion handling, which uses a fixed random animation
...
to toss karts around after an explosion.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5223 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-20 23:50:38 +00:00
auria
77a69fb80b
Moved logging code out of the input handler to the event handler, where it belongs more
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5205 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-16 00:24:25 +00:00
hikerstk
506ed556df
A warning about "Unsupported texture" is caused by irrlicht internally.
...
To get a warning-free release, this particular message is now only
printed in debug mode (and a line is added that this message will
not be printed in release mode). Just a dirty work around, we can't
change this and have to wait for irrlicht to get fixed.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5203 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-15 23:59:36 +00:00
auria
d1df9b1ee1
Fixed several FIXMEs related to player ID
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5136 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-08 21:02:40 +00:00
auria
dc3a3e9506
Removed another unecessary TODO
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5128 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-08 01:38:10 +00:00
auria
765ed3aaa3
Removed large bits of old unused code that was jsut confusing
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5127 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-08 01:32:00 +00:00
auria
2a06f7b2c0
Cleaned up no more useful TODOs
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5106 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-31 23:22:26 +00:00
auria
91cdd81835
Show explainatory message when some player tries to perform an action that is reserved to the game master. Hopefully this will help reduce confusion
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5080 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-27 17:31:45 +00:00
hikerstk
939caf1981
1) Added -v X verbosity command line option, so that debug output is only printed
...
if an appropriat ehigh verbosity is selected. For now most debug statements
that are always printed (i.e. independent of user actions) is only printed
if verbosity is >=5, debug statement which are a reaction of a user action
with verbosity >=4.
2) track- and gamepad-debug flags are not saved in config files anymore, made
disabled reverse_look_threshold as default.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5063 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-24 23:52:41 +00:00
auria
2f236cb6ea
Fixed keyboard configuration. For some reason, the code that sensed keyboard input disappear... weird
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5024 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-19 01:02:40 +00:00
mbjornstk
9de4c01b19
Add break, otherwise zipper cheat fell to next case.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4990 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-13 23:28:52 +00:00
hikerstk
d50bd9dbe6
Merged the switch_coordinate_system branch with trunk. This means
...
that now all coordinate systems are y up, z forwards - including
the file format. For now only one track has been ported, the
rest will follow shortly.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4985 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-12 02:16:11 +00:00
mbjornstk
9606ee9ab6
Add zipper cheat, F7 key. Useful to test high speed behaviour.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4956 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-08 03:18:11 +00:00
hikerstk
ac85c71e31
Removed 2nd debug key for bubble gum, added debug key for bowling ball.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4945 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-06 00:42:18 +00:00
auria
228808f981
Applied other patch by Hilton Medeiros
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4936 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-05 19:43:35 +00:00
auria
4349a8961b
Fixed positive/negative axis display (show +/- and not 43/45)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4935 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-05 16:20:30 +00:00
auria
e23c222a59
Applied patch by Medeiros Hilton for input (with some modifications)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4934 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-05 16:17:47 +00:00
auria
9dcc758862
Improved gamepad sensing logic
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4927 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-04 16:15:15 +00:00
mbjornstk
72411827ea
Add parachute to testing cheats (press F6). And trailing whitespace.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4885 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-28 22:39:28 +00:00
auria
5a32323c61
Modified 'setup new race' to skip kart selection (what use is this feature otherwise...)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4864 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-26 20:10:43 +00:00
hikerstk
d7c44cc93d
Physics debug mode now cycles through off, show karts and collision shape,
...
to show only collission shape and then back to off. The command line
option --bullet-debug was removed.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4853 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-26 07:03:12 +00:00
mbjornstk
08106d9d2d
Make cheats give bowling again, with F5 (F1 and F5 were giving both gum).
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4847 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-25 21:20:11 +00:00
hikerstk
f41150eae7
Replaced OpenGL bullet debug view with irrlicht bullet debug view.
...
Debug view can now be switch on and off during a race (ctl-F11),
but currenlty does not display as much information as the
original debug view (more to be implemented here).
Removed glut dependency.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4794 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-22 12:02:13 +00:00
auria
b868909efe
Some cleanups with ActivePlayer. Moved it to StateManager, because that's where active players are created and stored - this will be less confusing than hiding it inside a configuration class. More work is still to be done if we want to make this code really clean, though.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4764 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-18 21:28:32 +00:00
hikerstk
da3de6d131
Big code refactoring: instead of having auto_kart, player_kart, the karts
...
now use a 'controller' object which is responsible for its steering, e.g.
a default_ai_controller, player_controller etc. This makes it easier to
switch a player kart to use a end-of-race computer controller to drive
the kart once the race is finished (though that's not implemented yet).
I expect some bugs with restarting race, and perhaps end of race
behaviour at this stage.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4714 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-15 00:54:28 +00:00
hikerstk
328373289a
1) Moved access to world object from race_manager to static functions in
...
world.
2) Removed more dujplicated/unnecessary functions from race_manager
(getPlayerKart, getTrack).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4682 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-11 07:11:52 +00:00
hikerstk
47a1a1dfa2
Removed m_local_player_karts vector from world.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4678 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-10 12:47:18 +00:00
mbjornstk
6f2a459096
Add bubblegum to cheats (F5) and make real gum become small nitro on swap.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4662 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-07 21:14:08 +00:00
hikerstk
566e12d129
1) Removed bubblegum as a separate object, instead bubblegums are now
...
created as normal items.
2) Now bubblebum can be used in swapping as well, so all nitro become
bubblegums, and all bubblegums become items.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4657 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-07 08:49:36 +00:00
hikerstk
8be9c3397a
Added first version of switch collectable.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4635 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-04 22:53:24 +00:00
auria
5bfebb1425
Fixed bug that allowed players that had backed from the kart selection screen to use their device to make selections later on
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4615 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-02 01:08:47 +00:00
auria
702fc9b92e
Improved file names consistency
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4506 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-21 22:55:08 +00:00
hikerstk
037069a257
Improved handling of directory for user configuration files to work even if $HOME/.config
...
does not exist, and moved handling of files and directories from user_config to file_manager.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4467 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-15 01:46:03 +00:00
hikerstk
cf0e69b48f
Removed #include of kart and player_kart from world.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4424 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-10 23:12:29 +00:00
auria
2dd0a904b6
Improved buttons to have their size depend on text contents; made the 'enter' key trigger a PA_FIRE action
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4388 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-02 20:55:19 +00:00
auria
4768654113
Fixed subtle input issue (problem assigning mouse to the right player when keyboard config used is not the first)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4381 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-02 01:55:20 +00:00
auria
2fb710f30b
Implemented adding keyboard configs through the GUI
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4357 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-28 18:13:24 +00:00
auria
df422703ac
Much cleanup and documentation in input code, which was done on the way of fixing a bug that dealt with multiple and/or custom keyboard configs and menu navigation
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4355 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-27 19:12:44 +00:00
auria
2caccb8c6e
Fixed input bug that occurred when going back in menus
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4354 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-27 18:41:19 +00:00
mbjornstk
5fe41e5625
Run expand -t4 to convert tabs to spaces. No other whitespace fixes, but
...
there are still trailing spaces and lines with 5 spaces as indent (fix them
as the files are changed for other reasons). src/guiengine/CGUIFont.* and
src/bullet/ not processed to allow cleaner updates from upstream.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4320 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-18 00:36:35 +00:00
auria
958c107969
non-game-master players are now also prevented from altering race setup screens using mouse
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4266 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-06 19:29:35 +00:00
auria
e20f805e61
In multiplayer mode, players other than the game master should not be able to select stuff in race setup menus
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4265 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-06 19:22:57 +00:00
auria
d58d42b27d
Fixed input device association bug when starting game clicking and a gamepad is plugged
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4254 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-06 16:23:17 +00:00
auria
a5edabee75
Fixed input mode not properly reset when exiting race
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4253 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-06 16:06:39 +00:00
auria
bed690a4d1
Support for multiple keyboard players (but you can't add a 2nd keyboard through the GUI atm, it needs to be done in the config file)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4224 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-11-14 15:19:40 +00:00
auria
cb91674631
Started adding support for multiple keyboard players (does not work at kart selection screen atm)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4223 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-11-14 15:09:34 +00:00
auria
bc9f8ebf6c
Improved assignment of mouse to which player (a few known glitches when game master uses a gamepad, but getting better overall)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4193 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-11-02 01:04:05 +00:00
auria
32968a2454
Removed useless TODO
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4189 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-11-01 01:11:33 +00:00
auria
26d1917d31
Fixed that, when you brought up a dialog asking you to type text by pressing a button with the spacebar, a space was added into the text box
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4188 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-11-01 00:42:16 +00:00
auria
129c93f4bf
Fixed pressing space in text areas (/me should beware about static variables in header files...)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4186 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-10-31 23:35:54 +00:00
auria
729ccbc79b
Fixed keyboard navigation & text boxes, improved the visual clues that it's focused
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4184 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-10-31 23:06:58 +00:00
auria
22a7479a59
Cleanup in input & GUI code
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4182 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-10-31 22:03:20 +00:00
auria
1292e2a37f
Yay for another mammoth commitsvn rm src/states_screens/options_screen.hpp Major cleanup in screens event handling, so that I can look at my code without being ashamed ;)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4077 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-10-04 23:59:05 +00:00
auria
8b9d4bd2e7
Cleaned up event propagation code a lot to stop using different contradictory conventions, and to be easily read
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4051 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-09-27 19:43:22 +00:00
auria
5aa52c20ce
Implemented viewing the help menu in-game
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4009 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-09-06 18:45:38 +00:00
auria
d891996797
Fixed crash in game dialogs + Fixed input sensing issue
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4008 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-09-05 17:27:14 +00:00
auria
27b4537cd2
Tweaks to event handling to fix keyboard navigation and dialogs (more work still needed)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4005 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-09-05 16:08:13 +00:00
auria
10b589b168
More work on in-game dialogs
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4004 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-09-05 15:46:24 +00:00
auria
c3f0f7ab82
Massive conversion from std::string to stringw for all strings that need to be translated. Currently, translation is broken (strings i try to transalte appear as junk) -- since irrlicht GUI widgets all use wchar_t, using std::string in UTF-8 just didn't make it
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3963 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-30 18:21:59 +00:00
auria
b39414cf8e
Many more I18N clarifications, and fine-tuning of extracting strings from XML files
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3960 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-30 01:50:22 +00:00
auria
e655b6330b
Updated french translation so that I can test transaltion of menus eventually
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3958 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-30 00:00:15 +00:00
auria
d9707351ea
First steps towards letting two different players choose their own kart
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3932 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-27 18:41:20 +00:00
auria
8417a50796
Fixed keyboard navigation on kart selection screen (still 1-p only though)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3923 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-26 20:05:51 +00:00
auria
67b46fe67c
Fixed bug I introduced while fixing warnings
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3920 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-26 18:12:11 +00:00
auria
452808838a
Fixed various warnings
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3916 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-26 15:18:14 +00:00
hikerstk
96dc2a8fe2
Cleaned up StringUtils: used 'better' names (e.g. getPath()
...
instead of path()), and used our convention of using capitalization
for words (and not _). Started adding support for additional track
directories, but that's not working yet.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3912 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-24 05:56:53 +00:00
rforder
b5e25d1298
Fixes key-up propagation bug in menu system
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3890 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-19 17:48:02 +00:00
auria
a2e93a9b2c
Don't show music desc when music is off
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3869 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-16 20:55:06 +00:00
auria
b7c8b77952
Improved input handling with modal dialogs & text boxes
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3868 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-16 19:36:52 +00:00
auria
600ac7ebf5
Fixed backspace in new player dialog dismissing the dialog
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3867 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-16 19:25:15 +00:00
rforder
3119dec5c2
temporary work around for multiplayer kart selection
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3855 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 21:58:55 +00:00
rforder
808aa8bfea
More cleanup in the kart selection gui & input code
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3854 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 18:39:18 +00:00
rforder
7db3295936
Moved various function calls involved in the initialization of the kart selection screen from different places in the code into the "init"
...
section of the kart selection call back. This will prevent some problems that were occuring when returning to the kart select screen
from the track select screen (and it just makes more sense to find them there). Renamed playerPressedRescue and firePressedOnNewDevice
to playerQuit and playerJoin respectively, to more accurately describe the behavior of the functions. Removed the now superfluous
setPlayer0Device function.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3853 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 17:38:01 +00:00
rforder
3c7e489698
Still tweaking kart selection menu input & menu input in general.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3844 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 01:48:15 +00:00
rforder
f3cab7c2b3
Cleaning up multi-player handling in the kart selection screen
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3843 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-12 19:04:01 +00:00
rforder
db1c53fa94
Moved the handling for the fire & rescue buttons in the kart selection menu out of the device manager & into the input manager (which makes more sense). No more setting the action to PA_FIRST to signify that it was handled internally (too hackish).
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3842 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-12 18:19:02 +00:00
auria
72c17d391b
Improvements to input actions handling in GUI, implemented selection of other game modes
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3829 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-11 00:55:48 +00:00
rforder
2a23fa33a8
Fixed sticky joysticks... again.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3828 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-09 19:04:06 +00:00
rforder
abfda2b933
Input cleanup, only relays button events when the button state has actually changed. Won't issue multiple button events when the button
...
is only pressed once (doesn't unload arsenal when fire button is tapped, etc.).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3827 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-09 18:47:01 +00:00
rforder
aee48faca8
Updated input configuration GUI to work correctly with recent changes to the input system.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3826 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-09 18:12:35 +00:00
rforder
cf8e767f5c
more input code clean-up
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3823 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-09 04:12:04 +00:00
rforder
21fb622a6d
Broke down mapInputToPlayerAndAction() into several composite functions to increase readability & ease efforts to debug.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3822 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-07 17:31:14 +00:00
rforder
1d681112af
Fixed sticky joystick bug that cropped up in the last commit
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3818 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-07 00:29:43 +00:00
rforder
f12463b4c9
Fixed temporarily broken keyboard support.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3816 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-06 20:13:22 +00:00
rforder
f3e3206b26
More cleanup for the input system. Removed a lot of functions from InputDevice that won't be used there anymore.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3815 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-06 19:05:26 +00:00
rforder
9ba0bd67d2
Added new DeviceConfig class (/config/device_config.cpp) for review. The DeviceConfig class will be responsibile for handling Gamepad and Keyboard configurations. It is now possible to share a single configuration between identical devices. Begun integration, still needs *a lot* of cleanup, but basically works.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3814 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-06 18:00:18 +00:00
rforder
9f38ccb15b
================================================================================
...
Temporary fix for multicontroller problems. This fix will support multiple
controllers with the same name, but there will be one entry in the config file
for each controller. No longer creates multiple entries for each controller.
Need to correct a few other problems before this can truly be completed.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3805 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-04 20:18:43 +00:00
hikerstk
2acfc48e3e
Updated animation rotations.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3804 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-04 13:05:13 +00:00
auria
86e5f5c71d
Configuring gamepad input works again
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3801 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-03 00:29:20 +00:00
hikerstk
ece925bdcc
1) Removed wire-frame support (which didn't work anyway, and would need
...
a fair amount of work to get it to work with irrlicht).
2) Added ctrl-f11 support to switch from bullet debug view back to
track view (full toggling back and for is not supported yet and
ends up with a grey screen in bullet debug view).
3) Code cleanup (removed tabs, HAVE_IRRLICHT, ...)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3797 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-02 23:34:22 +00:00
auria
aceea4b120
Controller patch by Bob Forder - thanks\!
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3789 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-31 23:50:40 +00:00
auria
85266dfe10
Started mammoth cleanup of GUI code. Separated the generic GUI engine and the STK-specific bits (still work to do on this side)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3764 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-18 17:48:36 +00:00
auria
b71d1c4557
cleanup in GUI module (moved event handling out of Screen)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3763 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-18 16:04:45 +00:00
hikerstk
88b4b3b041
1) Added calls to new render functions which are
...
called during the irrlicht rendering, so calls
to directly print etc. to the screen are possible.
2) Time and ready/set/go of the race gui now work.
3) Code cleanup.
4) Removed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3740 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-12 11:54:21 +00:00
auria
a44b531525
Replaced usage of some confusing IDs with more explicit pointers
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3736 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-12 00:18:37 +00:00
auria
ab4787f884
Fixed in bug in the device manager that could cause crashes
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3734 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-11 19:29:33 +00:00
auria
ab4cdcae00
A player can now remove himself by pressing rescue at the kart selection screen
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3733 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-11 19:24:42 +00:00
auria
f987fff348
more work on multiplayer kart selection screen & multioplayer input
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3731 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-11 16:50:57 +00:00
auria
8eaef3f63b
Better player detection. Still getting some problems with irrlicht widgets : they internally catch some events without asking me. For instance, in 'press fire to join', if player has 'fire' assiged to the spacebar, pressing the spacebar results in irrlicht pressing the currently button - not sure how to get around this.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3726 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-11 01:56:07 +00:00
auria
18dc556fe6
Added functions to clean-up input after a game (though they're not called yet)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3702 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-04 20:09:49 +00:00
auria
a7abbf4c82
More work towards multiplayer (player 1 is now assigned an input device when pressing 'new game'). Cleanup when restarting game not implemented
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3701 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-04 20:00:18 +00:00
auria
1c256c7805
Refactored kart selection screen code to work towards multiplayer
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3700 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-04 17:24:09 +00:00
auria
9ccd391906
Improved input sensing for gamepad
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3672 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-29 00:06:37 +00:00
auria
b8f2ef6c16
Some cleanup in input sensing code + fixed a totally stupid bug
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3671 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-28 23:24:58 +00:00
auria
604c7adeea
Widgets in modal dialogs can now be skinned
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3642 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-24 16:09:59 +00:00
auria
28503654ad
Started implementing track-screen pop-up
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3632 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-21 20:00:39 +00:00
auria
2f6b05bace
started converting user config to XML. Implementation is not 100% complete yet; saving works, not lodading. Implementation is not the prettiest but designed for minimal maintenance.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3625 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-21 01:10:43 +00:00
hikerstk
ee90eca26e
1) Created new config subdir and moved the last remaining files into
...
appropriate subdirs (only main.cpp and main_loop.?pp are now directly
in the src directory).
2) Cleaned up all #include directives, so that all files now use
the right subdirectories.
3) Some minor code cleanup.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3606 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-11 10:00:43 +00:00
auria
ef2d5b6229
Configuring gamepad from GUI should now work on Linux
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3597 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-07 23:04:18 +00:00
hikerstk
25b9d9643c
Replaced all remaining HEADER_.*_H with HEADER_.*_HPP .
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3585 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-03 02:17:43 +00:00
hikerstk
96805cfc71
Moved race related files into new subdir 'race'.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3581 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-03 01:36:48 +00:00
hikerstk
075c9dbb86
Moved more files into appropriate subdirs, update build
...
system for VS (verified) and autoconf (not verified).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3574 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-02 12:37:29 +00:00
hikerstk
2b9d7a0b55
Cleaned up #includes, for debugging F1 triggers now also an explosion.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3572 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-02 12:01:27 +00:00
auria
a6460ee84c
gamepads can now be configured! I cannot test if it works when you have mutliple gamepad models, people will need to help me here
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3565 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-31 02:04:14 +00:00
auria
1f7ec5ae58
hopefully fixed Arthur's issue + more code work towards gamepad support
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3563 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-31 01:27:21 +00:00
auria
72c4ac468a
playing around a bit more with input. added debug prints to corner what's happening on Arthur's computer
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3561 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-31 00:40:42 +00:00
auria
99ab952a5f
fixed glitch in input config + cleaned up a bit the code
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3560 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-30 23:45:51 +00:00
auria
4972f247be
made some keyboard keys always usable in menus (like arrows) when bindings don't use them
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3559 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-30 20:54:59 +00:00
auria
1a47cc900f
default value for 'rescue' is now 'backspace' rather than 'escape' since escape has a special meaning
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3558 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-30 20:48:25 +00:00
auria
ff77ab2184
Can now configure keyboard bindings from Options screen (gamepad probably doesn't work)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3555 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-30 19:35:47 +00:00
auria
dc84e15685
cleaned up old TuxKart crap left in input module (variables id0, id1, id2, whose meaning change from device to device... how brilliant)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3553 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-30 18:57:25 +00:00
auria
83a731500c
started implementing input sensing in options. currently, detects keypresses and prints them to the console. No gamepad supprot yet, bindings are not actually changed yet
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3552 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-30 01:41:09 +00:00
hikerstk
eac584b350
Removed warning about macro redefinition (incorrect order of includes).
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3544 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-28 02:13:42 +00:00
auria
7e45011c6e
cleaned up options menu code
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3535 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-24 00:52:31 +00:00
auria
d38c6672a1
improved my replacement for plib detectory detection functions
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3517 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-18 18:38:51 +00:00
auria
6bba0c2c28
Fixed issue with input gamepad buttons
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3475 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-10 01:45:32 +00:00
hikerstk
092183844f
Removed irrlicht debug output (only non-trivial messages are printed
...
to stdout now).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3464 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-04 12:25:00 +00:00
auria
99e6752200
totally removed SDL dependency. wav sounds have been converted to OGG, since we already have an OGG reader in - why require an additionnal dep like SDL, that does input, graphics, etc. when we only need audio and already have an audio reader in? Original .wav files (lossless) will be added tomedia repository (second part)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3449 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-03 00:50:09 +00:00
auria
a15c23d878
the input config screen now contains some stuff... ugly and will need some serious thinking, but going along
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3439 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-26 01:31:56 +00:00
auria
505f19d267
cleanup : removed some old unused code
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3438 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-26 00:56:24 +00:00
auria
184da61d55
removed debug prints now that the bug is fixed
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3437 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-26 00:47:34 +00:00
auria
b0ead848bc
removed debug prints now that the bug is fixed
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3436 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-26 00:43:31 +00:00
auria
915a64b15f
fix over previous commit
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3435 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-26 00:37:38 +00:00
auria
afcbe8cf82
possibly a fix this time for the jpenguin bug. It would be a bug related to having >1 gamepads.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3434 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-26 00:32:33 +00:00
auria
12cef62751
added more debug checks for jpenguin
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3433 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-26 00:29:24 +00:00
auria
7e0714bd9e
added more debug checks for jpenguin
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3432 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-26 00:24:16 +00:00
auria
94e795655e
added more debug checks for jpenguin
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3431 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-26 00:12:55 +00:00
auria
3b0c85f05d
added placeholder input config screen. added debug logs for jpenguin
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3430 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-26 00:03:46 +00:00
auria
36f5450c88
fixed navigating players list from gamepad
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3429 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-25 23:37:04 +00:00
auria
aeb559bdde
made some workaround mac-only as apparently other versions of irrlicht don't suffer from this bug
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3427 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-25 23:14:30 +00:00
auria
ecc9cbaa30
made navigation with gamepad smoother
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3425 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-25 19:50:41 +00:00
auria
b3bebcb1a2
gamepad buttons work again, except for 'fire' in menus (can't find why)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3424 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-25 19:47:41 +00:00
auria
9eea5f5aac
gamepad axes work again
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3423 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-25 19:26:44 +00:00
auria
6ed09ea3c5
bringing gamepad back in (won't work in game but will be detected, watch terminal)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3422 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-25 18:25:08 +00:00
auria
87a274fc77
started removing SDL from STK. Gamepad input broken, maybe keyboard a bit too. Default bindings changed because some keys on mac are ignored by irrlicht (known bug, fixed in enxt version IIRC)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3421 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-25 17:55:39 +00:00
auria
de53cd22c1
fixed going back in menus with gamepad (use rescue, should now work)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3373 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-10 23:07:21 +00:00
auria
55aa2dd525
only use timer for axis events
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3361 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-05 00:16:52 +00:00
auria
96ac216d34
removed debug checks, made time laps shorter
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3360 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-05 00:10:44 +00:00
auria
2dbe5795eb
added lots of debug checks so Conso and MiniBjorn can help me debug input code
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3359 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-05 00:01:13 +00:00
auria
f08731fd7e
updated timer set on gamepads (dt is in seconds, not milliseconds... oops)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3358 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-04 23:54:16 +00:00
auria
924d087c88
pressing 'rescue' on gamepad should behave the same as 'escape' on keyboard in menus
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3356 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-04 23:48:38 +00:00
auria
f66430574c
attempt at timing so gamepad events don't happen too often in menu
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3355 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-04 23:47:38 +00:00
auria
acab33bc67
trying to make gamepad-GUI navigation work even when axes are pushed in the negative direction
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3354 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-04 23:36:57 +00:00
auria
b43fefd68c
added missing include
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3352 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-04 23:21:35 +00:00
auria
89f5994028
attempt at fixing crash when navigating menus with gamepad
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3351 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-04 23:15:34 +00:00
auria
ef9206b569
attempt at menu navigation from gamepad
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3349 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-04 23:06:12 +00:00
hikerstk
30de5e36f8
Removed callback manager, callbacks are not needed the way they were
...
with plib, and the track is now updating its animated textures and
physical objects.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3337 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-01 00:55:20 +00:00
auria
6da2c08e99
removed a few debug prints now that it works
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3334 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-31 21:04:44 +00:00
auria
71f99430c1
more attempts at fixing gamepad buttons
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3333 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-31 20:49:51 +00:00
auria
721348c2ce
added debug check to help minibjorn find the cause of his issues with gamepad
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3332 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-31 20:42:32 +00:00
auria
43ed6ea083
fixed bug related to axes vs buttons
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3331 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-31 20:33:44 +00:00
auria
b08c2045d0
added default bindings for gamepad buttons + other minor fixes
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3328 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-31 16:01:42 +00:00
auria
ac211ab6de
made input config file valid XML by adding a global container tag
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3327 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-31 15:14:23 +00:00
hikerstk
4da63bbe90
Removed warnings about missing new lines at end of file.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3325 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-31 03:15:41 +00:00
hikerstk
f860816241
1) Added support for nested tags to XMLNode.
...
2) Made all xml files well formed.
3) Minor code cleanups.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3324 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-31 02:52:01 +00:00
auria
a32dd4c5aa
only write config file when needed + other cleanup
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3322 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-30 01:42:12 +00:00
auria
ac8192e53f
some cleanup
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3321 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-30 01:23:54 +00:00
auria
5b50990c3e
removed debug checks that are no more needed
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3320 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-30 01:22:53 +00:00
auria
5ca3f169ca
more gamepad fixes
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3319 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-30 01:21:43 +00:00
auria
9c727717aa
improved somewhat joystick loading from config, and added debug logging to help find what's wrong with minibjorn's
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3318 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-30 01:15:52 +00:00
auria
7fe245040a
added warning when config file is not read
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3317 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-30 01:02:54 +00:00
auria
15e2386398
attempt at saving and loading gamepad configs to/from config files. support for multiple gamepads is theorically possible though configs can only be changed by editing the config file. joystick users will need to test and report (and help me) since i can't go much farther than that
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3316 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-30 00:58:12 +00:00
auria
06cfbc2aeb
keyboards will now read their config from file (only default keyboard, support for multiple configs to come later)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3315 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-30 00:19:24 +00:00
auria
51231429e1
started writing new XML config file
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3314 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-29 23:37:21 +00:00
auria
9f9f711070
trying to fix elusive build errors or Arthur's and Minibjorns' computers
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3313 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-29 22:12:44 +00:00
auria
81d860a1ab
improved joystick code again
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3312 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-29 18:43:39 +00:00
auria
174a753997
restored more gamepad code (hopefully cleaner but not tested)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3311 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-29 16:15:17 +00:00
auria
34f8e281d7
bringing gamepad input a bit more in. help me with testing please - i can somewhat fake gamepad input with some utility but it's not too handy
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3310 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-29 15:51:55 +00:00
auria
bcd8287033
brought back static keypress detection (mostly F-keys)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3297 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-23 19:41:14 +00:00
auria
38ff0a3d46
bringing back some joystick code (can't test since i don't own one XD I will need help on this probably)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3296 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-23 19:09:16 +00:00
auria
10eadc6090
some cleanup over previous commit
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3295 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-23 18:46:35 +00:00
auria
098ce5b32e
Introducing the new DeviceManager input API...
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3294 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-23 18:38:06 +00:00
auria
b160406dd4
started reconstructing input...
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3292 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-23 16:06:48 +00:00