mouseandkeyinput help
Original Reporter info from Mantis: xinyiman
-
Reporter name: francesco sammarco
Original Reporter info from Mantis: xinyiman
- Reporter name: francesco sammarco
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 ?!
Mantis conversion info:
- Mantis ID: 36433
- OS: Mac OS X
- OS Build: Sierra
- Platform: Darwin
- Version: 3.0.2