Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2008-10-07 09:09:24 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-10-07 09:09:24 +0400
commit77484d28d5098de2fd3924df28d846023d7751ec (patch)
tree3ea8a3660c8e9bb18f0421f6d95c0a604fd710c1 /intern
parent8d73ea72a75ce5567fc2a39f2acc2ad5b2543f4c (diff)
joystick update
* use SDL events to trigger the sensor, trigger was being forced every tick. removed workaround for this problem. * added "All Events" option, similar to all keys in the keyboard sensor. This means every event from the joystick will trigger the sensor, however only events from the selected type (axis/button/hat) is used to set the positive state of the sensor. * Added python function sens_joy.GetButtonValues(), returns a list of pressed button indicies. * Removed pressed/released option for joystick buttons, it was the same as the invert option.
Diffstat (limited to 'intern')
-rw-r--r--intern/SoundSystem/sdl/SND_SDLCDDevice.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/SoundSystem/sdl/SND_SDLCDDevice.cpp b/intern/SoundSystem/sdl/SND_SDLCDDevice.cpp
index 0ab0fa94c7b..b1bac964c61 100644
--- a/intern/SoundSystem/sdl/SND_SDLCDDevice.cpp
+++ b/intern/SoundSystem/sdl/SND_SDLCDDevice.cpp
@@ -41,7 +41,9 @@
#include "SND_SDLCDDevice.h"
#include "SoundDefines.h"
+#ifndef DISABLE_SDL
#include <SDL.h>
+#endif
SND_SDLCDDevice::SND_SDLCDDevice() :
m_cdrom(NULL),