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
2010-05-17convert GameKeys epydoc into sphinx markupCampbell Barton
2010-04-20BGE EPY Docs: PhysicsConstraints and fixes in other modulesDalai Felinto
PhysicsConstraints module documented by Jean-François (Ninja Goliath) based on GameKit 2nd ed. Thanks for the initiative and the great help! General advice for anyone helping with EpyDocs: * use :: instead of : to keep the indentation correct, * use B{} for clarity when needed (e.g. createConstraints) Adding F13 to F19 to complement Matt's recent commit * There are other (not so important) functions in PhysicsConstraints module that are not exposed in the documentation right now. The generated page is temporarily here, if someone want to review it: http://blenderecia.orgfree.com/blender/tmp/PhysicsConstraints-module.html
2010-04-17Patch #21789 - BGE Keyboard and Mouse Python types - by Mitchell Stokes(Moguri)Dalai Felinto
The patch exposes mouse and keyboard read-only properties in the GameLogic module Also renames bge.keys to bge.events (* Note: name of bge submodules (logic, render, ...) may change before 2.5 final release [right Campbell?]). """ This patch adds two new types to the BGE: SCA_PythonKeyboard SCA_PythonMouse These two types allow users to make use of the keyboard and mouse without the need for a keyboard or mouse sensor. SCA_PythonKeyboard has an events property that acts just like SCA_KeyboardSensor.events. SCA_PythonMouse also has an events property to check for mouse events. Further more it supports getting and setting normalized cursor position (from 0.0 to 1.0) with SCA_PythonMouse.position. The cursor can be shown/hidden using SCA_PythonMouse.visible. """ Its use is similar with current mouse and keyboard controllers. With the exception of mouse position being normalized and writable as well (replacing Rasterizer.setMousePosition). Code Sample: ###### from bge import logic, events mouse = logic.mouse keyboard = logic.keyboard for key,status in keyboard.events: if status == logic.KX_INPUT_JUST_ACTIVATED: if key == events.WKEY: print(mouse.position) # move_forward() mouse.visible = True # turn cursor visible mouse.position = 0.5,0.5 # centralize mouse - use tuple ###### * Important Note: mouse.position still will not work properly for Letterbox mode. In order to fix letterboxing I may need to move the set x,y mouse function to inside the canvas code (to avoid duplicated code between mouse sensor and bge.logic.mouse). I'll leave this for another commit though. Thanks Mitchell for the work on that.
2009-04-25BGE API - small changesCampbell Barton
- print CListValue errors only once. - bge_api_validate_py.txt now validates modules as well as types. - added missing functions and consts for epydoc modules. some of these in GameLogic.py still need sorting.
2009-04-24BGE PyAPI epydoc errors fixedCampbell Barton
2009-04-09Added GameKeys.EventToCharacter(event, is_shift) so you can get the ↵Campbell Barton
character that would be types when pressing a key. Last commit was made in the pydocs folder only, so this includes changes mentioned in rev 19620.
2008-08-29BGE Py API - GameKeys.EventToString() utility function, makes key ↵Campbell Barton
configuration menu's easier to write. own error with blenderplayer, wasnt decreffing the GameLogic module, probably didnt matter since python was restarted anyway, but is incorrect.
2004-06-26Minor Fixes:Kester Maddock
Better use of booleans for python #include fixes for Windows Python Doc fixes Use the farthest vertex as the face position when z sorting faces. (Camera is on -z axis!)
2004-05-31Use epydoc for generating game python reference (like the bpython guys)Kester Maddock
2004-05-30Added Python module for Lights.Kester Maddock
Added attributes to the vertex class.
2004-05-24Game Python Reference Manual.Kester Maddock
This manual lists all the Python classes and modules for Game Objects, Sensor bricks, Controllers etc. Missing: Actuator & Controller reference.