Fix speling misteaks :)

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4637 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 2005-11-04 11:17:31 +00:00
parent cd433ac67a
commit d24609eafb
1 changed files with 6 additions and 5 deletions

View File

@ -795,15 +795,16 @@ static pascal OSStatus carbonWindowHandler( EventHandlerCallRef nextHandler, Eve
*/
static pascal OSStatus carbonMousewheelHandler( EventHandlerCallRef nextHandler, EventRef ev, void *userData )
{
// Handle the new "MightyMouse" mouse wheel events. Please, someone explaint ot me
// why Apple changed the API on this even though the current API supports two wheels
// just fine. Matthias,
// Handle the new "MightyMouse" mouse wheel events. Please, someone explain
// to me why Apple changed the API on this even though the current API
// supports two wheels just fine. Matthias,
EventRef event;
if (GetEventKind(event)==11) {
// if this is a "MightyMouse" event, we need to convert it into a regulare MouseWheel event
// if this is a "MightyMouse" event, we need to convert it into a regular
// MouseWheel event
GetEventParameter( ev, kEventParamEventRef, typeEventRef, NULL, sizeof( EventRef ), NULL, &event );
} else {
// otherwise, we simply copy the event (can we safely do that?)
// otherwise, we simply copy the event...
event = ev;
}