Flakebi
b21f6f4782
Improve handling of mouse movement for the first person camera, especially at low framerates
2015-03-08 15:14:31 +01:00
hiker
11f233938d
Cherry picked pull request #1917 .
2015-02-13 08:26:25 +11:00
hiker
8b0a2f303c
Try to fix #1879 : avoid using NULL pointer in case of ignored
...
devices.
2015-01-08 08:09:17 +11:00
hiker
34f3755976
Added comments for translators.
2014-12-03 10:40:19 +11:00
Flakebi
e4777d0c63
Prevent the max speed of the fps camera to be less than 0
2014-11-26 09:02:34 +01:00
Flakebi
c4cdfc4a0e
Merge branch 'upstream/master' into fixes
...
Conflicts:
src/input/input_manager.cpp
src/states_screens/kart_selection.cpp
2014-11-26 07:34:26 +01:00
hiker
63e5acdf2b
The (float) cast is not necessary, and makes it harder to read.
2014-11-25 14:00:43 +11:00
hiker
51be8195bc
Merge branch 'cppcheck' of https://github.com/tobbi/stk-code into tobbi-cppcheck
2014-11-25 13:58:59 +11:00
hiker
24b1a3af32
Fixed compiler warnings.
2014-11-23 21:13:12 +11:00
Flakebi
1585199ccc
Change variable names again
2014-11-22 13:44:27 +01:00
Marianne Gagnon
c7b43b49e7
Tweak variable names
2014-11-21 18:25:50 -05:00
Flakebi
9e5eced8df
Improve smooth camera movement and move settings to user config
2014-11-20 23:01:40 +01:00
Tobias Markus
61ccfaac77
Fix errors in src/ that cppcheck yielded with the default configuration
2014-11-20 22:01:46 +01:00
Flakebi
3e53787598
Smooth camera movement
2014-11-18 22:01:02 +01:00
Flakebi
497fa10695
First try of a fps camera
2014-11-18 11:55:32 +01:00
auriamg
af35bce41d
Merge pull request #1714 from Flakebi/fixes
...
Some minor fixes
2014-11-16 21:21:45 -05:00
Vincent Lejeune
b7771642ca
Fix read overrun
2014-11-17 00:11:00 +01:00
Flakebi
be999895b4
Remove some unused code
2014-11-17 00:08:47 +01:00
Flakebi
b8484d3576
Fix #966 Don't select a kart/keyboard configuration automatically in multiplayer
2014-11-16 22:35:03 +01:00
hiker
18bcb92afc
Used better variable name.
2014-11-03 21:36:54 +11:00
hiker
150941aad2
Maintain a flag that indicates if the gamepad device name is 'useful'
...
(on windows we might get a dummy name, identical for all gamepads).
Only add a number to the gamepad if the device has a useless default
name.
2014-11-03 16:37:19 +11:00
hiker
ce488aa98f
Removed duplicated A/B handling for xbox/classic xbox; use "thumb button"
...
instead of "stick button", and more switch instead of if.
2014-11-03 13:51:54 +11:00
hiker
e488b61b62
More fixes for classic xbox controller.
2014-11-03 13:43:50 +11:00
hiker
d2d665b449
More fixes for classic xbox controller.
2014-11-03 13:34:23 +11:00
hiker
467bc6b34b
Try to improve xbox classic controller support.
2014-11-03 13:18:45 +11:00
hiker
ff5c3ac65e
Try to identify old xbox controllers.
2014-11-03 12:45:19 +11:00
hiker
6f46f5a8b3
Support for gamepad-specific button/axis names. Added name for xbox
...
controller.
2014-11-02 23:13:49 +11:00
hiker
f2e33b1000
Fixed compilation (accidentally added some wip code).
2014-11-01 12:27:09 +11:00
hiker
9f0d1f00ea
Inreased default deadzone to 4096.
2014-11-01 12:22:20 +11:00
hiker
15e712ba49
iFix #960 : impossible to configure xbox controller. The xbox controller
...
can have a rather huge deadzone, which prevent detection when a axis
was released.
2014-11-01 11:58:04 +11:00
hiker
8aac6ca6d0
For now comment out debug messages.
2014-11-01 09:54:21 +11:00
hiker
62ef836e7c
Bugfixes: set number of buttons in the configuration (since it is
...
not saved in the config file), use floating point in desensitizing.
2014-11-01 09:53:13 +11:00
hiker
b992375c58
Added missing initialisation.
2014-11-01 09:51:42 +11:00
hiker
98c8985739
Removed unused constants.
2014-10-31 21:06:26 +11:00
hiker
e9e5cab164
Added option to 'desensitze' joysticks, i.e. make it less sensible
...
at values close to 0.
2014-10-31 16:32:39 +11:00
hiker
22441c1fd8
Forgot to add isAnalog() function for gamepads.
2014-10-31 16:19:31 +11:00
hiker
e2d17bcf88
Added 'isAnalog' functionality to avoid that gamepads on full left/right
...
steering will delay steering because of time-full-steer. Added some
virtual destructors.
2014-10-31 15:18:26 +11:00
hiker
4986deebd6
Removed number of axes and buttons from GamepadDevice, and use the
...
values from GamepadConfig instead.
2014-10-31 08:16:15 +11:00
hiker
e9980fcb2f
Completely removed device type, instead use isGamePad() and
...
isKeyboard().
2014-10-30 17:43:50 +11:00
hiker
25bbc06109
Made m_type in DeviceConfig private.
2014-10-29 16:41:26 +11:00
hiker
ce9cfa3bc8
Removed unnecessary #include.
2014-10-29 16:41:04 +11:00
hiker
7b809636d4
Made m_plugged and m_name in DeviceConfig private.
2014-10-29 16:37:27 +11:00
hiker
721c8bfa88
Made m_enabled in DeviceConfig private.
2014-10-29 15:44:05 +11:00
hiker
29f5b14e45
More refactoring. Created factory for DeviceConfigs.
2014-10-29 08:22:25 +11:00
hiker
92196c7534
Made processAndMapInput a pure virtual function of InputDevice, which
...
is implemented in Keyboard- and GamepadDevice.
2014-10-28 17:04:00 +11:00
hiker
a0b7b1003d
More work on refactoring input devices (still wip).
2014-10-28 10:14:04 +11:00
hiker
b66fb2e56b
Removed unnecessary parameter for gamepads in processAndMapInput,
...
started a common virtual function for processAndMapInput. Removed
unnecessary #includes, cosmetic changes.
2014-10-28 09:00:22 +11:00
hiker
9d06c276b2
Removed unnecessary line breaks.
2014-10-27 17:03:41 +11:00
hiker
bb24585229
Fixed error in xml writing.
2014-10-27 17:03:16 +11:00
hiker
3235633bbc
Fixed copy&paste error.
2014-10-27 16:56:27 +11:00
hiker
a14423ac2a
Bugfix: the number '4' would not be displayed correctly if used
...
as input key.
2014-10-27 16:55:49 +11:00
hiker
99f69f4070
Moved KeyboardConfig and GamepadConfig from DeviceConfig to their
...
own separate files.
2014-10-27 13:26:52 +11:00
hiker
e8f509eefe
Moved DeviceConfig from config to input directory.
2014-10-26 23:26:02 +11:00
hiker
ec908d85c6
Split GamepadDevice and KeyboarDevice from input_device into their
...
own files. Renamed InputManager::getDeviceList() to getDeviceManager().
2014-10-25 23:09:00 +11:00
hiker
6893e94e71
Replaced irrXML usage with out XMLNode.
2014-10-24 21:47:50 +11:00
deve
08c8de1986
Fixed missing quotes
2014-10-09 07:07:16 +02:00
Flakebi
069853b11f
Fix #1153 Cleanup logging code
2014-10-07 20:54:54 +02:00
hiker
c28728d903
Removed more compiler warnings for 64 bit windows compilation.
2014-09-23 16:23:22 +10:00
Vincent Lejeune
ff5e457869
Fix include in wiimote_manager.hpp
2014-07-29 00:50:40 +02:00
Flakebi
55090a0566
Unify log output
2014-07-22 12:54:11 +02:00
Daniel Butum
efac42f746
Fix move on unitialised values in displayFPS
2014-07-03 17:22:00 +03:00
hiker
5c959e07a2
Fixed multiplayer kart selection. Now guests are created on demand,
...
and are not saved to the players.xml file anymore.
2014-06-02 08:08:42 +10:00
hiker
79081f8ce8
Merge branch 'master' of https://github.com/pgabor/stk-code into pgabor-master
2014-05-25 22:38:03 +10:00
konstin
7cc83e1475
running whitespaces.py update 1
2014-03-29 11:33:43 +01:00
konstin
663fffdebb
Revert "Running whitespaces.py; no more trailing whitespaces & tabs -> 4 spaces"
...
This reverts commit 65e2dcf2f0
.
2014-03-29 11:32:04 +01:00
konstin
65e2dcf2f0
Running whitespaces.py; no more trailing whitespaces & tabs -> 4 spaces
2014-03-28 20:08:39 +01:00
pgabor
f84f49dfc8
Adding a Wiimote with other one alredy placed - Bug: #1209 fixed
2014-03-15 21:15:04 +01:00
hiker
4d6b110e56
Removed unnecessary #include of user_config.hpp in other hpp files
...
(to reduce the amount of recompilation when user_config.hpp is changed).
2014-02-26 12:52:16 +11:00
hiker
2b4729a145
Renamed player.?pp to player_profile.?pp (to follow our style
...
guide); removed unnecessary #includes.
2014-02-17 20:10:29 +11:00
KroArtem
8f69e0b043
fix compilation
2014-02-01 04:21:55 +04:00
KroArtem
8a731691fd
more coverity fixes, get rid of printf
2014-02-01 03:54:34 +04:00
Marianne Gagnon
601726db70
Fix harmless GCC warning
2014-01-26 19:21:07 -05:00
Marianne Gagnon
3d054ea91b
Bunch of small code cleanup
2014-01-25 21:05:07 -05:00
auria
03618a5bc5
Apply slighly modified version of patch from ticket #1121
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@15013 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2014-01-12 18:04:00 +00:00
hikerstk
7cdca13d7b
Fixed all(?) warnings about signed and unsigned comparisons.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14950 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2014-01-07 00:09:19 +00:00
deveee
75cfde3d69
Fixed compilation in debug mode.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14942 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2014-01-06 20:05:23 +00:00
hikerstk
73c498daf3
Start to support 'externa' data directories. Most directories
...
from data can now be moved out (except music). STK prints
an overview of which directory is taken from where. More
cleanups and improvements will come.
Also moved skins into a separate directory under data (from
data/skins), since it's likely that skins will be part
of a binary package (i.e. changes to skins not really
related to code), while gui files will more likely stay
with the code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14731 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-17 23:48:47 +00:00
auria
0383a9ec55
more debug menu love
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14677 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-09 02:03:16 +00:00
auria
55018ee089
Extend funto's debug menu
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14676 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-09 01:51:03 +00:00
deveee
ec13bcf802
Merge branch 'hilnius'
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14638 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-05 17:28:55 +00:00
deveee
33e09e8f59
Solved conflicts before merge hilnius branch
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@14637 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-05 17:28:04 +00:00
hikerstk
d41bbbaa2f
Merged uni's branch with trunk. No guarantee that everything works ;)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14620 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-03 23:02:06 +00:00
hikerstk
bced8cdb9f
Merged with trunk, part 1 (due to previous failures I am splitting this
...
patch).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@14605 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-02 04:27:55 +00:00
auria
5899a26aad
Merge cand's graphical improvements branch!! There are many known issues folks, so don't cry victory just now, this is just the beginning. Especially, shadows do not work correctly at this time
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14590 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-11-30 21:33:06 +00:00
hikerstk
af605462b2
Enabled wiimote-debug output in release builds, changed debug
...
output to show the now used and derived value.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14555 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-11-23 22:55:35 +00:00
hikerstk
8247f73604
Replaced tabs with spaces.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14448 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-11-15 12:52:39 +00:00
hikerstk
c5b8732087
Probably biggest commit (in terms of number of files) ever -
...
updated the (c) line of all files to -2013, added missing (c),
changed format in some cases so that it will be easier in
the future to change them by script. No actualy code change.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14447 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-11-15 11:43:21 +00:00
hikerstk
206cc802e6
Modified instructions for connecting wiimote on windows, added
...
'OK/cancel' type to MessageDialog (instead of 'Yes/Cancel').
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14333 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-28 23:10:45 +00:00
hikerstk
3fae9270c2
Avoid concatenating translated strings, and moved comment so that
...
translators can see where the string is used.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14332 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-28 22:07:01 +00:00
hikerstk
00018ebe68
1) Replaced m_wiimote_max with m_wiimote_raw_maw (default
...
needs to be changed from 90 to 25 for r14301 to work
properly).
2) Some code cleanup (removed global constant).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14305 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-25 05:25:33 +00:00
hikerstk
b51f500f8f
Fixed wiimote steering (steering was dependend on
...
roll, i.e. tilting the wiimote forward would affect
steering), #990 .
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14301 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-24 20:55:33 +00:00
magned
78632a8ecf
Align Wiimote connect instruction with actual confirm button text, and added link to wiki with detailed instructions (yet to be written).
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14154 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-24 22:44:37 +00:00
hilnius
262f70205c
merging trunk and fixing compilation issues
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13689 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-15 10:05:34 +00:00
curaga
f83a30db47
Some more header cleanup
...
Now it only takes 38s to build after touching irr_driver.hpp, vs prev 1m 10s.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13602 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-08-30 12:13:23 +00:00
hikerstk
abef4345c5
Fixed typo (which only happens when compiling with wiimote).
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13584 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-08-28 11:59:40 +00:00
hikerstk
ffb2ee7c22
Replaced usleep (which isn't available on windows) with new
...
custom function in Time::. Replaced calls to irrlicht's
device's sleep function (since it can cause a crash if the
device doesn't exists, which can happen when a thread calls
device->sleep while changing screen resolution).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13580 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-08-28 03:17:44 +00:00
hikerstk
9fe8d0f259
Started to work on rewinding. ATM a single kart can be rewound
...
to a previous time (i.e. the race continuous from the previous
location). No memory handling is done, ... all work in progress :)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/rewind@13468 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-08-12 23:29:21 +00:00
hilnius
ea2b52a663
merging hilnius's branch
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@13394 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-07-31 18:03:11 +00:00
hilnius
a20c200b77
merging uni's branch. one bug appeared back
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13386 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-07-30 00:41:47 +00:00
hilnius
b737ad753a
adding a way to have a network kart selection screen inheriting the normal kart_selection_screen
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13363 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-07-27 23:13:03 +00:00
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