libmousetrap 0.6.1 review

Download
by rbytes.net on

libmousetrap is a C library to create and manipulate mousetrap buffers in system memory

License: LGPL (GNU Lesser General Public License)
File size: 0K
Developer: Ben Smith
0 stars award from rbytes.net

libmousetrap is a C library to create and manipulate mousetrap buffers in system memory. Mousetrap buffers are compressed two dimensional cartesian grids with integer precision.

A mousetrap buffer retains an integer identifier for every point in the grid, so that later the identifier can be referenced with a set of (x, y) coordinates.

Why?

Well, when you're doing graphics programming and somebody clicks something with the mouse, all you get is the x and y location where the click was, and what mouse button they pressed.

With the x and y location, all you can really get is the color of the pixel they clicked on, which doesn't tell you what *thing* on the screen they clicked on. There are lots of different ways to determine in your program what thing was clicked on, this library is one of them.

What's New in This Release:
This release fixes a really silly but really nasty bug, I called the function to create mousetraps out of SDL surfaces with the flags and the id parameters mixed up.

libmousetrap 0.6.1 keywords