aboutsummaryrefslogtreecommitdiff
path: root/sword2/driver/_mouse.cpp
AgeCommit message (Collapse)Author
2005-02-27Got rid of all the .h files but one in the 'driver' directory. They wereTorbjörn Andersson
either very small or, in the case of driver96.h, a disorganized jumbles. svn-id: r16952
2005-02-19This is the second part of the BS2 restructuring. There are two newTorbjörn Andersson
classes: Screen and Mouse. Screen handles most of the drawing, except the mouse cursor and in-game menus. The old Graphics class is no more. I've also fixed some "reverse stereo" regressions from the first part of the restructuring. I'm not sure what the next step will be, but hopefully it will be smaller than this one was. svn-id: r16812
2005-01-17Updated copyright header, as discussed on the mailing list.Torbjörn Andersson
svn-id: r16580
2005-01-10system.h was being included in tons of places, without any good reason; ↵Max Horn
reduced this (total dependencies on system.h went down from 193 to 85 files) svn-id: r16527
2005-01-01Updated copyright year.Torbjörn Andersson
svn-id: r16397
2004-05-09Removed the buffering of mouse and keyboard events. I don't think any ofTorbjörn Andersson
our other engines do this, so there is little reason for BS2 to. I did add a filtering mechanism so that mouse button releases and scroll wheeling is ignored during normal gameplay, but I don't know if that was necessary either. Since this left little more than an empty husk where the Input class used to be, I've eliminated that class and buried its remains in Sword2Engine. svn-id: r13812
2004-05-05Take advantage of the changes in the backend's mouse cursor handling. ItTorbjörn Andersson
didn't do the change I was hoping for: the coyote stone is still partially see-through, but perhaps it was in the original as well. At least we no longer need to keep the buffer the mouse cursor is decoded to, since that's now handled by the backend. svn-id: r13782
2004-04-23Major revamping of the BS2 memory manager and, some small changes to theTorbjörn Andersson
resource manager. All new code! All new bugs! svn-id: r13603
2004-04-07Cleanup.Torbjörn Andersson
svn-id: r13494
2004-03-28Renamed more OSystem methodsMax Horn
svn-id: r13410
2004-02-05Removed some of the #includes from sword2.hTorbjörn Andersson
svn-id: r12739
2004-01-06It's a new year in BS2 land, too!Torbjörn Andersson
svn-id: r12181
2003-12-28Hopefully the last big renaming. Now the datatypes have names likeTorbjörn Andersson
"StandardHeader" instead of "_standardHeader". svn-id: r11997
2003-12-19Implemented scroll wheel handling for save/load dialogs. (This turned up aTorbjörn Andersson
few other hitherto harmless bugs, which I've hopefully managed to fix.) svn-id: r11762
2003-11-16More cleanup. I've eliminated all the temporary global variables I've addedTorbjörn Andersson
over the past few weeks, except for g_sword2. (Of course, this doesn't necessarily make the code any prettier, but we can work on that later.) svn-id: r11309
2003-11-11Moved low-level keyboard and mouse handling to a new Input class, andTorbjörn Andersson
renamed the Display class Graphics for no better reason than me liking the phrase "sound and graphics" better than "sound and display". svn-id: r11258
2003-11-08cleanup whitespacesPaweł Kołodziejski
svn-id: r11212
2003-10-28bs2 -> sword2Max Horn
svn-id: r10997
2003-10-15Dumped most of the remaining "driver" code into a new "Display" class. ThisTorbjörn Andersson
touches a lot of the code, of course, and adds yet another global variable (temporarily, I hope), but everything still seems to work. Knock on wood. svn-id: r10806
2003-10-08Some more cosmetic changes while I'm considering the next move. (Or maybeTorbjörn Andersson
I'm just hoping that if I stall long enough, someone else will make the move for me. :-) svn-id: r10676
2003-10-04added namespace Sword2Max Horn
svn-id: r10581
2003-10-03use C++ struct naming instead of typedefs -> this fixes (or works around, ↵Max Horn
whatever you prefer to call it) the GCC_PACK problem in Doxygen svn-id: r10569
2003-09-28More cleanup, plus support for cutscene leadout music. For now, we onlyTorbjörn Andersson
play that music for cutscenes that have subtitles. svn-id: r10460
2003-09-27More cleanup, and I've replaced most - not quite all - of BS2's debugTorbjörn Andersson
message functions with our own. We still need to go through them and assign sensible debug levels to them. svn-id: r10422
2003-09-23Removed ancient version history. Much of it doesn't apply to us, and wasTorbjörn Andersson
cluttering up the files anyway. (Though I do feel a slight twinge of guilt for removing historical records like this. :-) svn-id: r10384
2003-09-16Removed some unnecessary #includes and #defines.Torbjörn Andersson
svn-id: r10264
2003-09-13should have been an int32Oliver Kiehl
svn-id: r10220
2003-09-13endian fixOliver Kiehl
svn-id: r10219
2003-09-12endian fixesOliver Kiehl
svn-id: r10192
2003-08-28CleanupTorbjörn Andersson
svn-id: r9885
2003-08-22Only hide the mouse cursor if both the mouse animation and the luggageTorbjörn Andersson
animation are removed. svn-id: r9818
2003-08-21-Werror cleanup, don't try to free const variables...Jonathan Gray
svn-id: r9808
2003-08-20Draw combined cursor properly. Thanks to joost for finding out that theOliver Kiehl
maximum cursor size in SDL is 80x80. This *might* cause problems in some cases svn-id: r9805
2003-08-20Initial (slightly buggy) support for "luggage" mouse cursors, i.e. cursorsTorbjörn Andersson
made up from two different images. svn-id: r9802
2003-08-20Applied a different fix for the mouse offset problem. As far as I can tell,Torbjörn Andersson
the old way would have made it impossible to access the (not yet implemented) menu icons at the top of the window. I hope this one works... svn-id: r9793
2003-08-20Removed some memset()s that I added earlier out of paranoia. Added a FIXMETorbjörn Andersson
comment, noting that DrawMouse() used to handle the "luggage animations" as well. I don't know if I broke anything when I moved that part of the code. svn-id: r9792
2003-08-20correction from olki that fixes mouse y offset being too highJonathan Gray
svn-id: r9790
2003-08-20This should fix mouse cursor animations. (Actually, I hardly even looked atTorbjörn Andersson
what the old mouse cursor patch did. I simply replaced it with my own. Sorry about that. :-) svn-id: r9786
2003-08-19preliminary cursor code. dirty, hacky and no animation yet. but at least ↵Oliver Kiehl
something... svn-id: r9785
2003-07-28-Werror cleanupJonathan Gray
svn-id: r9230
2003-07-28Compiles on mingw nowTravis Howell
svn-id: r9222
2003-07-28bs2 driverJonathan Gray
svn-id: r9212