From: <ba...@us...> - 2008-08-29 13:07:44
|
Revision: 27 http://scrupp.svn.sourceforge.net/scrupp/?rev=27&view=rev Author: basique Date: 2008-08-29 13:07:40 +0000 (Fri, 29 Aug 2008) Log Message: ----------- - removed the mouse and key table All functions belonging to these tables are renamed: key.isDown -> scrupp.keyIsDown mouse.getX -> scrupp.getMouseX mouse.getY -> scrupp.getMouseY mouse.getPos -> scrupp.getMousePos mouse.isDown -> scrupp.mouseButtonIsDown - renamed scrupp.isMusicPlaying and scrupp.isMusicPaused for consistency: scrupp.isMusicPlaying -> scrupp.musicIsPlaying scrupp.isMusicPaused -> scrupp.musicIsPaused - any callable values (i.e. values with a __call metamethod) are accepted as callbacks - added two new options to scrupp.draw(): xOffset and yOffset The graphic is translated according to these two parameters. - all key events are represented by strings Now scrupp.keyIsDown(k) expects k to be a string. The callbacks keypressed(k) and keyreleased(k) are called with a string as argument. See keyboard.c for the mappings. Modified Paths: -------------- trunk/src/Graphics.c trunk/src/Keyboard.c trunk/src/Main.c trunk/src/Mouse.c trunk/src/Sound.c This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |