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:
parent
cd433ac67a
commit
d24609eafb
@ -795,15 +795,16 @@ static pascal OSStatus carbonWindowHandler( EventHandlerCallRef nextHandler, Eve
|
|||||||
*/
|
*/
|
||||||
static pascal OSStatus carbonMousewheelHandler( EventHandlerCallRef nextHandler, EventRef ev, void *userData )
|
static pascal OSStatus carbonMousewheelHandler( EventHandlerCallRef nextHandler, EventRef ev, void *userData )
|
||||||
{
|
{
|
||||||
// Handle the new "MightyMouse" mouse wheel events. Please, someone explaint ot me
|
// Handle the new "MightyMouse" mouse wheel events. Please, someone explain
|
||||||
// why Apple changed the API on this even though the current API supports two wheels
|
// to me why Apple changed the API on this even though the current API
|
||||||
// just fine. Matthias,
|
// supports two wheels just fine. Matthias,
|
||||||
EventRef event;
|
EventRef event;
|
||||||
if (GetEventKind(event)==11) {
|
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 );
|
GetEventParameter( ev, kEventParamEventRef, typeEventRef, NULL, sizeof( EventRef ), NULL, &event );
|
||||||
} else {
|
} else {
|
||||||
// otherwise, we simply copy the event (can we safely do that?)
|
// otherwise, we simply copy the event...
|
||||||
event = ev;
|
event = ev;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user