Hi there,

On Mac OS X, FG doesn't handle number keys on Keypad properly.
Attached is a patch for solving this problem (on src/Main/FGEventHandler.cxx), 
so please commit it.

Here is the brief problem statement.
FGEventHandler::handleKey converts KEY_KP_Insert ... KEY_KP_PageUp keys to '0' 
... '9' when num-lock modifier is on
However, Apple keyboard don't have Num-lock key so num-lock modifier never 
becomes true.
As a result, Number keys on Keypad is ignored.

My patch makes handleKey ignore num-lock modifier on Macs, which converts 
KEY_KP_XXX to '0'..'9' all the time.
It works fine on my Mac and it doesn't affect other platforms.

Best,

Tat

Attachment: FGEventHandler.diff
Description: Binary data

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to