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