No key event is generated from mac book pro trackpad

I'm developing an application in javafx multiltouch on mac, but no key event was taken by the Manager using the trackpad. Event handlers are added to the scene.

I use JDK1.7.0_07.

Someone has an idea.

Thank you.

I don't think it will work. The javadocs for the TouchEvent explicitly state

"Touch event indicates a touchscreen action."

The trackpad isn't a touch screen.

The trackpad will generate GestureEvents. Once again, since the javadocs:

"Actions are usually caused by direct (touch screen) or indirect (track pad) touch events."

If you can handle things like ScrollEvent, RotateEvent and ZoomEvent. I think that the mapping between the physical gestures on the trackpad and semantic events is managed by the operating system (if the behaviour could change if the user changes the settings for trackpad in system preferences, for example). It doesn't look like it will answer to your needs, but maybe...

I don't know if there is another way to interact with the trackpad (someone else surely will).

Here is a simple way to see which events are generated (it will generate a lot of output).

import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.input.InputEvent;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;

public class TouchTest extends Application {

  @Override
  public void start(Stage primaryStage) throws Exception {
    Scene scene = new Scene(new AnchorPane(), 400,400);
    scene.addEventHandler(InputEvent.ANY, new EventHandler() {
      @Override
      public void handle(InputEvent event) {
        System.out.println(event.getEventType().getName());
      }
    });
    primaryStage.setScene(scene);
    primaryStage.sizeToScene();
    primaryStage.show();
  }

  public static void main(String[] args) {
    launch(args);
  }

}

Tags: Java

Similar Questions

  • I have a new mac book pro, I need to copy my stuff from my old mac pro book

    Hi all, I just splashed the money and got myself a new mac book pro, without the DVD player.

    Now I would like to transfer all my stuff from my old book of mac pro, the easiest way and fastest possible.

    while I was in the store to spend my money, the guy told me that I can do by connecting two computers together via Firewire/stroke of lightning and using Time Machine!

    I have an adapter Firewire/Thunderbolt and a Firewire cable :-)

    But I would like to have someone, somewhere to point me in the right direction so that I'm not kidding, I did it this way before, are there details step by step anywhere please, I don't can find any info anywhere else!

    Thanks for looking and if you can help/advise so much better :-)

    Tim

    The 'easier and faster way' is to boot your old MacBook Pro in target disk mode and follow the instructions to move your content to a new Mac - Apple Support.

    Instruction to start in disc Mode target-> share files between two computers with target - Apple Support disk mode

  • How can I transfer my photos from a Samsung S6 to a Mac Book Pro?

    How can I transfer my photos from my phone Samsung S6 to my Mac Book Pro

    Try to use Image Capture (located in the Applications folder) with the phone connected to the BP M with USB cable and download to a folder on the desktop.  From there, do what you want with them,

  • I have a Mac Book Pro, which does not include a CD slot and I bought the Suite Adobe 6 CD. Download the program from the Web site using my serial number?

    I have a Mac Book Pro, which does not include a CD slot and I bought the Suite Adobe 6 CD. Download the program from the Web site using my serial number?

    Hi Haley,

    Please download Creative Suite 6 applications

    Kind regards

    Sheena

  • I got a mac book pro with Yosemite. Today started to ask me to enter in the first series. Uninstalled all the app from adobe and I loggin and install all the app and still the problem

    I got a mac book pro with Yosemite. Today started to ask me to enter in the first series. Uninstalled all the app from adobe and I loggin and install all the app and still the problem. What do I do?

    If you are prompted for a serial number in the creative clouds, see this link:

    https://helpx.Adobe.com/creative-cloud/KB/CCM-prompt-serial-number.html

    Guinot

  • How can I transfer contacts from galaxy s4 for Mac book pro?

    I recently bought a Mac book pro 15 ".

    I need to transfer contacts and some files on my new mac.

    How can I do?

    TKS for your help

    Ottavio

    Hey ottaviob,

    If I understand correctly, you want to transfer contacts and other things to your new Mac.
    I recommend you to read this article; It has advice to transfer your contacts, music, photos, documents and more on your Android device. Once the content is on the Mac later at some point if you wish, this article is also not to transfer this content in an iOS device too.

    On a Mac, install Android File Transfer, open it,

    Move content manually on your Android device on your device iOS - Apple Support

    Thank you for using communities of Apple Support. Have a good.

  • I have a Mac Book Pro with OS x 10.6.8 and I want to export bookmarks from Safari to Firefox 7.0.1?

    Safari is version 5.1 on my Mac Book Pro.

    Make sure that you do not use Firefox mode of private - browsing using Firefox without saving history permanent.

    • You enter private browsing mode, if you select: Firefox > Preferences > privacy > History: Firefox will be: "don't forget the story ever.
    • To view the history settings and cookies, choose: Firefox > Preferences > privacy, choose the setting Firefox will: use the custom settings for the story of
    • Uncheck the box: [] "Permanent private browsing Mode.

    Ensure that all downloads are in progress. Wait until they finish or cancel the download.

    -> Where to find and manage files in Firefox downloaded

    -> Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems

    Check and tell if its working.

  • Mac Book Pro can't see the 7 computer from the window on the network

    I have a MAC Book Pro on my network which I am able to see it on my Windows 7 computer and access and send files, but I can't get my Mac to see my Windows 7 computer in all.

    I have set up the sharing in W - 7 and have identified the files to share.
    What Miss me

    Hi mjhar,

    Thanks for visiting the site of the community of Microsoft Windows 7. The question you posted corresponds to Mac computers and would be better suited to the Apple community. Please visit the link below to find a community that will provide the support you want.

    Apple community Shawn - Support Engineer - MCP, MCDST
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Why do updates from Adobe on my Mac Book Pro?

    Hello, I have 2014 Mac Book Pro 15 "Display to retirement. Almost every two weeks, I get an update of Adobe and its getting a bit boring. Anyone else having this problem with Adobe?

    Thank you

    Ross

    Hey Ross,

    Please refer to this topic for solution How can I remove the update of Adobe in the Mac menu bar?, it could be a great help.

    Let me know if the problem persists.

    Kind regards

    Nicos

  • Can not start my Mac Book Pro Apple on Dual Boot

    Hey guys - need help

    I have a 2015 Mac Book Pro that I have a dual boot with Windows 10 of setting, everything went well, but I found that I had lost the ability to open any program in Windows, installation of 'apps' thedesktop went, Edge Windows, search etc had disappeared off the coast of the taskbar. Restoring Windows installation wouldn't work, so did a repair through the control panel within Windows 10 who worked and everything in Windows was back to normal.

    But now, I find that I can not boot into the side MAC from my laptop, if I go into my PC the "Bootcamp" of my SSD drive partition is there but no side of MAC.

    Any help would be appreciated.

    Try to start by holding down the Option key.

  • Mac book pro 2016 13 inch crash regularly

    Hello

    I received the new mac book pro 2016 13 inches (forcefully toutch trackpad) and 16 GB of RAM.

    Sinus a few days my mac often crash and asks me to press a key to reboot (kernel panic). I can't work because of these accidents, could someone help me?

    I can not even an update for el capitan because it crash when updating.

    Thank you

    The guarantee gives the right to the free phone support for the first 90 days of ownership.

    If you bought the product in the United States directly from Apple (not a retailer), you have 14 days from the date of delivery where to Exchange or return it for a refund. In other countries, the return policy may be different. If you purchased from a reseller, its return policy applies.

  • Notes on Mac Book Pro applications

    I use Mac Book Pro retina, 13-inch, mid 2014,2.8 GHz Intel Core i5, 8 GB 1600 MHz DDR3, Intel Iris 1536 MB and last OS X El Capitan 10.11.2. (15 C 50). error messages occur when you leave notes. I use Version 4.2 (549.10.1) of the Notes in Mac Book pro application.  I am unable to remember exactly what I did before the error message occurred.  Need help solving this problem!

    Please launch the Console application in one of the following ways:

    ☞ Enter the first letters of his name in a Spotlight search. Select from the results (it should be at the top).

    ☞ In the Finder, select go utilities ▹ of menu bar or press the combination of keys shift-command-U. The application is in the folder that opens.

    ☞ Open LaunchPad and start typing the name.

    The title of the Console window should be all Messages. If it isn't, select

    SYSTEM LOG QUERIES ▹ all Messages

    in the list of logs on the left. If you don't see this list, select

    List of newspapers seen ▹ display

    in the menu at the top of the screen bar.

    Click on the clear view icon in the toolbar. Then take an action that does not work the way you expect. Select all of the lines that appear in the Console window. Copy to the Clipboard by pressing Control-C key combination. Paste into a reply to this message by pressing command + V.

    The journal contains a large amount of information, almost everything that is not relevant to solve a particular problem. When you post a journal excerpt, be selective. A few dozen lines are almost always more than enough.

    Please don't dump blindly thousands of lines in the journal in this discussion.

    Please do not post screenshots of log messages - text poster.

    Some private information, such as your name or e-mail address, can appear in the log. Anonymize before posting.

    When you post the journal excerpt, an error message may appear on the web page: "you include content in your post that is not allowed", or "the message contains invalid characters." It's a bug in the forum software. Thanks for posting the text on Pastebin, then post here a link to the page you created.

    If you have an account on Pastebin, please do not select private in exposure menu to paste on the page, because no one else that you will be able to see it.

  • FaceTime works on iPhone, but not on Mac Book Pro

    I can click on FaceTime with iPhone but when I try to use FaceTime on Mac Book Pro, nothing happens that he does nothing when I click on a contact to establish a connection.  Don't know why?  I tried to locate preferences when I open FaceTime app on iPhone and Mac, but it does not appear.  I read on the forum that it should be on the left side of the screen below the contacts but I don't know why it does not appear or the other?

    Please launch the Console application in one of the following ways:

    ☞ Enter the first letters of his name in a Spotlight search. Select from the results (it should be at the top).

    ☞ In the Finder, select go utilities ▹ of menu bar or press the combination of keys shift-command-U. The application is in the folder that opens.

    ☞ Open LaunchPad and start typing the name.

    The title of the Console window should be all Messages. If it isn't, select

    SYSTEM LOG QUERIES ▹ all Messages

    in the list of logs on the left. If you don't see this list, select

    List of newspapers seen ▹ display

    in the menu at the top of the screen bar.

    Click on the clear view icon in the toolbar. Then take an action that does not work the way you expect. Select all of the lines that appear in the Console window. Copy to the Clipboard by pressing Control-C key combination. Paste into a reply to this message by pressing command + V.

    The journal contains a large amount of information, almost everything that is not relevant to solve a particular problem. When you post a journal excerpt, be selective. A few dozen lines are almost always more than enough.

    Please don't dump blindly thousands of lines in the journal in this discussion.

    Please do not post screenshots of log messages - text poster.

    Some private information, such as your name or e-mail address, can appear in the log. Anonymize before posting.

    When you post the journal excerpt, an error message may appear on the web page: "you include content in your post that is not allowed", or "the message contains invalid characters." It's a bug in the forum software. Thanks for posting the text on Pastebin, then post here a link to the page you created.

    If you have an account on Pastebin, please do not select private in exposure menu to paste on the page, because no one else that you will be able to see it.

  • How to delete files in pictures (Mac Book Pro)

    Mac Book Pro, OSX El Capitan, 10.11.2 Version;

    Version 1.3 of photos

    Question: How do I delete files? 'REMOVE' or by dragging to the trash basket seem to not work.

    Select the folder in the sidebar, ctrl + click, and then use the command "Delete folder" from the context menu.

    To bring up the sidebar using the key combination command-option-S ⌥⌘S

  • reset password but still open Mac Book Pro

    I forgot the password for my Mac Book Pro.  I have reset my password account iCloud and can't access the account and ping from the laptop through the find my iPhone utility but still get an error saying cela "this account uses an iCloud password to log on."

    Help...

    Hi bmittz,

    I understand that you encounter difficulties logging into your MacBook Pro because you forgot your password. I know it's important to have access to your own devices, so I am pleased to provide you with tips to help with this.

    Read this article we have about resetting your password:

    Change or reset the password of a user account from OS X - Apple support

    Thank you for using communities of Apple Support, cheers!

Maybe you are looking for

  • DVI-HDMI with AUDIO

    I am trying to connect my new Pavilion p7-1240 to my HDTV but do not have a HDMI port on my new computer. After doing some research I'm to mix signals about whether or not a DVI to HDMI cable will carry audio. I just called Radio Shack and they are s

  • Quality HP J6410 setting copy

    Hi, this is my first question on my newly purchased J6410 printer. I need to know how to permanently COPY quality has led to a star (*) so that when the printer is turned on again it will show two stars (*). This can be achieved for the "Auto answer"

  • read and write files in a new file binary u16

    Hi all a very simple thing that I do not seem able to understand. I have a file containing the 1024octets of unsigned 16-bit words. I can read it successfully with the good value displayed. But then I try to write these values to a new file, I can re

  • create 4 pulse digital output at the base of the ttl input signal

    Hello I am a beginner in Labview and would welcome advice on how to solve the following problem. I'm setting up a train of pulses TTL and would like to send in Labview as input.  Each falling edge detected on the input signal, I would like to as Labv

  • Downgrade from Windows 7 to Windows Vista Home Premium... help please!

    Hello. I'm helping a friend fix his computer. He had someone to download a pirated version of Windows 7 and I am trying to downgrade it to its old Windows Vista. I followed all the instructions on this page http://answers.microsoft.com/en-us/windows/