View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0036433||Lazarus CCR||Packages||public||2019-12-13 08:23||2019-12-16 08:16|
|Reporter||francesco sammarco||Assigned To|
|Platform||Darwin||OS||Mac OS X|
|Summary||0036433: mouseandkeyinput help|
|Description||Hi guys. I'm modifying the mouseandkeyinput package to make it work with cocoa. Mouse management seems to work, but I have a question. If you look at the CocoaMouseInput.pas source|
you will see the commented line
// CFRelease (MyMouseEvent);
Because I couldn't find the equivalent in FPC sources. Does anyone know how to work around this problem?
Instead the keyboard management does not work. If you look at the CocoaKeyInput.pas source you will see that the SendKeyInput function is the offending part. To understand the problem just fill in my example with the modified package that I release here and press the button called test 2. You will see that instead of writing W LAZARUS writes other characters. Ideas ?!
|Tags||No tags attached.|
mouseandkeyinput.zip (16,599 bytes)
test_cocoa_mouse.zip (111,550 bytes)
||Please use the forum or mailinglist for questions, not the bugtracker.|
I had written on the forum and was advised to post it on Mantis because they lack the features needed to convert the package.
|2019-12-13 08:23||francesco sammarco||New Issue|
|2019-12-13 08:23||francesco sammarco||File Added: mouseandkeyinput.zip|
|2019-12-13 08:23||francesco sammarco||File Added: test_cocoa_mouse.zip|
|2019-12-13 18:42||Jonas Maebe||Project||FPC => Lazarus CCR|
|2019-12-14 23:32||Bart Broersma||Note Added: 0119852|
|2019-12-16 08:16||francesco sammarco||Note Added: 0119874|