View Issue Details

IDProjectCategoryView StatusLast Update
0036433Lazarus CCRPackagespublic2019-12-16 08:16
Reporterfrancesco sammarco Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformDarwinOSMac OS X 
Summary0036433: mouseandkeyinput help
DescriptionHi 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 ?!
TagsNo tags attached.
Widgetset
Attached Files

Activities

francesco sammarco

2019-12-13 08:23

reporter  

mouseandkeyinput.zip (16,599 bytes)
test_cocoa_mouse.zip (111,550 bytes)

Bart Broersma

2019-12-14 23:32

developer   ~0119852

Please use the forum or mailinglist for questions, not the bugtracker.

francesco sammarco

2019-12-16 08:16

reporter   ~0119874

I had written on the forum and was advised to post it on Mantis because they lack the features needed to convert the package.

https://forum.lazarus.freepascal.org/index.php/topic,47761.0.html

Issue History

Date Modified Username Field Change
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