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
AgeCommit message (Collapse)Author
2009-06-13allow building without SDLCampbell Barton
2009-06-03BGE PyAPI fixesCampbell Barton
- CValue warning ShowDeprecationWarning("val = ob.attr", "val = ob['attr']"); had false positives because of python using getattr() internally. Only show the wanring now when a CValue is found. - Py functions that accepted a vector and a GameObject were slowed down by PySequence_Check() first called on the GameObject, though this would fail it would try and get attributes from the game object - ending up in ~8 attribute lookups each time. Avoiding PySequence_Check() makes ob.getDistanceTo(otherOb) over twice as fast. - Joystick hat events could crash the BGE for joysticks with more then 4 hats. - PLY Import failed on PLY files from Carve, added some extra types.
2009-05-28[#18840] Joystick sensor lagCampbell Barton
if(SDL_PollEvent(&sdl_event)) // if -> while fixed it removed 'm_buttonnum' was misleading, wasn't used as you expect. Added gravity to variable to world to be used by collada.
2009-05-25BGE Joystick Hat BugfixCampbell Barton
bug reported by blenderage on blenderartist (found other bugs too). - "All Hat Events" didnt work. - Multiple hats didnt work - use a menu with direction names rather then have the user guess. disallow zero as a direction. - Allow up to 4 hats (was 2). - Python api was clamping the axis to 2, maximum is currently JOYAXIS_MAX - 16 - New python attributes hatValues and hatSingle, match axis functions. - Use SDL Axis events to fill in the axis and hat array rather then filling in every axis with SDL_JoystickGetAxis for each axis event.
2009-05-15minor change - mistake in joystick fix, util function for getting attrs from ↵Campbell Barton
BGE types
2009-05-15[#18749] BGE: Crash on joysticksensor.getAxisValue()Campbell Barton
negative index would be used when the joystick was not found, crashing python api, initialize these as 0 now.
2009-05-11Fix Makefiles for gameengine.Diego Borghetti
2009-04-17Missing <stdlib.h> for abs() made this file not compile for me.Ton Roosendaal
2009-04-07Some users have odd joysticks with more then 8 axises, increased to 16 (so 4 ↵Campbell Barton
joysticks) Ideally there would be no limit but I dont think its worth the effort. Also had a bug in last commit for the pytyhon api's "axisSingle" attribute, UI index starts at 1 not zero.
2009-04-07BGE Joystick SensorCampbell Barton
- Raised limit of 2 axis to 4 axis pairs (4==8 joysticks axis pairs) - Added a new Joystick Sensor type "Single Axis", so you can detect horizontal or vertical movement, rather then just Up/Down/Left/Right - added Python attribute "axisSingle" so you can get the value from the selected axis (rather then getting it out of the axis list) - renamed Py attribute "axisPosition" to "axisValues" (was never in a release) If we need to increase the axis limit again just change JOYAXIS_MAX and the button limits.
2009-02-25remove warnings for the BGECampbell Barton
- variables that shadow vers declared earlier - Py_Fatal print an error to the stderr - gcc was complaining about the order of initialized vars (for classes) - const return values for ints and bools didnt do anything. - braces for ambiguous if statements
2008-10-11Fix for a relative paths issue in the game engine. G.sce was beingBrecht Van Lommel
kept as the original file, but that can't work correct for solving relative paths once a .blend in another directory is loaded. The reason it went OK with the apricot tech demo is that the images there were lib linked into the level file, which still worked. Now it sets G.sce to the current loaded .blend file. Note that the python config file path still uses the first loaded .blend file so it looks in the same location each time. Also added some NULL pointer checks in the joystick code because it was crashing there on Mac, there's similar checks in related functions so I'm assuming this was just a missed case.
2008-10-10Missing include, apparently only scons+mingw suffers this, strange.Ton Roosendaal
2008-10-08* Joystick sensor is now only triggered from events of the selected type.Campbell Barton
* Keyboard sensor - added (back?) support for qualifiers (Hold buttons in the UI)
2008-10-07joystick updateCampbell Barton
* 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.
2008-09-21game engine now compiles with SDL disabled. CDROM and Joystick wont function ↵Campbell Barton
in this case
2008-09-02BGE Bugfix, SDL joysticks arrow keys didnt work when 2 joysticks were being ↵Campbell Barton
used at the same time. The event queue was running for every joystick sensor without checking if the events were for that joystick. seperating the event queue for each joystick is overkill so instead deal with all joysticks events in once function. Also removed some unused functions
2008-09-01BGE joystick sensor py api function 'getConnected()', returns true if the ↵Campbell Barton
joystick is connected and working. SCA_Joystick.h seemed to have twice as many newlines as needed.
2008-08-31BGE patch approved: BGE Multiple JoysticksBenoit Bolsee
2008-04-17Patch from GSR that a) fixes a whole bunch of GPL/BL licenseChris Want
blocks that were previously missed; and b) greatly increase my ohloh stats!
2008-04-05BGE bug [#4839] fixed: joystick keeps working after an overlay scene is removedBenoit Bolsee
2006-01-30More simple fixes to cleanup warnings and what not:Kent Mein
extern/bullet/BulletDynamics/ConstraintSolver/SimpleConstraintSolver.h added newline at end of file. intern/boolop/intern/BOP_Face2Face.cpp fixed indentation and had nested declarations of a varible i used for multiple for loops, changed it to just one declaration. source/blender/blenkernel/bad_level_call_stubs/stubs.c added prototypes and a couple other fixes. source/blender/include/BDR_drawobject.h source/blender/include/BSE_node.h source/blender/include/butspace.h source/blender/render/extern/include/RE_shader_ext.h added struct definitions source/blender/src/editmesh_mods.c source/gameengine/Ketsji/KX_BlenderMaterial.cpp source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp source/gameengine/Ketsji/KX_RaySensor.cpp removed unused variables; source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp changed format of case statements to avoid warnings in gcc. Kent
2005-07-18more preparations for bullet physics, and some eol issues with SCA_Joystick*Erwin Coumans
2005-03-25Big patches:Kester Maddock
Erwin Coumans: Abstract the physics engine Charlie C: Joystick fixes Me: Moved the ray cast (shadows, mouse sensor & ray sensor)
2005-01-30 - updated MSVC 6 projectfiles.Simon Clitherow
- removed 'using namespace std;' from SCA_Joystick.h (gave compile error on VC6).
2005-01-24Fixed the Makefiles so the Joystick stuff works.Kent Mein
Kent
2005-01-23Added Joystick sensor (from snailrose)Kester Maddock