Any methods or interfaces for Mouse Left and Right click actions?

Could anyone tell me the methods that I can use for setting up Mouse Left click and Mouse Right click actions? I checked the on-line API and could not find those specifications. Maybe I misses something and did not find them. If you just happen to know it, could you reply this message or you can tell me where I can search to find it. Thanks for your help. Bob

I believe you just set up to receive all mouse click events regardless of which mouse button the user clicked. When you get the MouseEvent object, call its getModifiers method to get an indication of which mouse button was pressed. Check the javadocs for MouseEvent, paying particular attention to "the button mask in the modifer field"

Similar Messages

  • Trackpad won't move curser mouse does. Left and right click working fine

    Hello everyone,
    I have a problem. Out of nowhere my trackpad won't move the curser anymore. Connecting a USB mouse does. Left and right click are still working fine. Any ideas of how to fix it?
    Thanks
    Dave

    Hey there DaveDaMac,
    It sounds like your built in track pad is not responding at all, but your USB mouse works without issue. I recommend the troubleshooting in this article for you named:
    Intel-based Mac notebooks: Troubleshooting unresponsive trackpad issues
    http://support.apple.com/kb/TS1248
    Try disconnecting the MagSafe connector from the computer and check the trackpad function. If the trackpad becomes responsive again, improper grounding may be the issue.
    If a two-prong AC plug is being used with the power adapter, try using the three-prong power cable that shipped with your computer and plug it into a grounded outlet.
    If the issue persists, make sure the third prong is present and do not use an adapter to enable the three-prong adapter to be used in a two-prong outlet. Note that the ground in the three-prong outlet may not be connected. This is common in older homes or buildings with replaced outlets. In these situations, the three-prong power cable will not improve trackpad responsiveness.
    If a grounded outlet is not available, rest your palm on the palm rest when using the trackpad. This should enable the trackpad to function properly.
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • Touchpad left and right clicks don't work on Yoga 2 pro

    Hi,
    I just bought a a yoga 2 pro. After setting up, I found that the two bottom keys, left and right keys on the trackpad do not work. Double tap also doesn't work. I reinstall the touchpad driver to no avail. Other gestures on the touchpad work fine, single tap registers as left click, two finger scroll also works. Also, when I use a blue tooth mouse, left and right key works fine.
    I am not sure if this is a hardware problem as when I swipe on the area of the two bottom keys, they register the movement. Just not click. Anyone can help me?

    Hello,
    I've had a Yoga2 Pro now for six months or so.  Just recently the left click stopped working correctly.  What I notice is that when holding down the left click button on the touch pad, and I try to drag a slider (like a volume slider or to drag a selection box or to drag a scroll box on a page, or to highlight text) and it stops holding down the click.  Sometimes it works, sometimes it keeps stopping.  
    Now, the right click is malfunctioning as well.  I press right click on something like an image, and nothing happens.  I have to right click on something 2-10 times now for it to register that I'm right clicking.
    Also, should I be able to tap the touchpad with two fingers and have that be a right click, or am I just reading that I should be able to do that on the screen (which  can)?
    I have downloaded the drivers for the y2p touchpad and the y2-13 and the generic ones from the synaptics webpage, but before I uninstall my drivers and try to install those, I want to be sure that is the correct and only possible fix.  I'm hoping its not a hardware malfunction.  I am running Win 8.1.
    Thank you.

  • 2011 17" MBP TrackPad Left and Right Click Intermittent in Win7/64

    A few weeks ago I installed Win7 Pro 64 via Bootcamp in a new 2011 MBP 17 (2.3gig).   Since day one the trackpad left and right click buttons have been intermittent in Windows only. 
    For example, while surfing the web some clicks work, others don't, often have to repeat clicks to get it to work, then next time it will work the first time. This is not just a Safari problem, it happens in every program including the Finder. 
    I think it is a driver issue and Apple needs to get on the ball and fix the problem and send out an update (yes I have the latest version).
    I saw where a guy had written drivers to address the problems with the low quality Apple drivers.  His is called TrackPad+++ but it is bloated and I'd rather not install it nor should have to.
    Anyone else having this problem or found a good solution?   BTW an external USB mouse works great.

    After a little bit of looking around i found my answer! Use the BootCamp Control Panel that you can call up by clicking on the boot camp icon in the notifications panel. There one can enable tap to click, dragging, and right click.

  • My HP pavilion G6 notebook PC the touch pad works however not left and right click pads

    Hi all, new here so go easy with me ) I have a new HP pavilion G6 notebook PC, the touch pad works however not the left and right click buttons? Checked in control panel and can not find a way of enabling them. Also unable to scroll down a file in the window without using the actual scroll down bar on the right of the screen...any solutions please? 

    Hi Sy,
    First, download the latest Synaptics driver installer on the link below and save it to your Downloads folder.
    http://ftp.hp.com/pub/softpaq/sp53501-54000/sp53851.exe
    Next, open windows Control Panel, open Programs and Features, right click the entry 'Synaptics Pointing Device Driver' and select Uninstall.
    When this has completed, restart the notebook.
    When windows has fully reloaded, open your Downloads folder, right click the Synaptics installer and select 'Run as Administrator' to start the installation.  When this has completed, restart the notebook again.
    Now follow the directions under the sub-heading 'Adjust horizontal and vertical scrolling' in the document on the link below to configure the scroll options as you require.
    Configuring The ClickPad.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Left and right click at the same time?

    Is there a way to get the magic mouse to do left and right click at the same time? Useful for well.. gaming.

    Check out the free Magicprefs software. You can then assign different functions to different clicks. swipes, taps, etc. There is an option for a two finger click and one of those options is "hold both right & left". It's free so you have noting to lose.
    HTH

  • Left click acting like both left and right click

    Left Click button is acting like both left and right click button HP 2000 Notebook PC

    Could you try to use another mouse? If the other mouse works perfect, then your mouse pad must be damaged and you should look to get it fixed or just use a mouse instead. If not, then the settings on how the clicks act must have been altered. 
    Try to find a mouse to try first before looking at the settings for your mouse pad. You could maybe borrow one if anyone else has a computer with a mouse in your home.
    While you do that, I'll work on searching if this is common and if their is a solution if it's the software.
    I'm a programmer and a computer expert in training.
    Please feel free to click the "Kudos!" on the left if I helped. Note* I do not work for HP

  • Touchpad keeps freezing (left and right click work fine)

    Hi, my touchpad keeps freezing randomly. I can still use the left and right click buttons and it eventually unfreezes after 10-40 seconds. Please tell me how to fix this. Thank you.
    Here's my computer information:
    HP Pavilion
    Product number G4W72PA#AKL
    Running on Windows 7 (not sure if 32- or 64-bit)

    Hello @ericajq ,
    Thank you for visiting the HP Support Forums and Welcome. I have looked into your issue about your HP Pavilion Notebook and issues with the Touchpad on Windows 7 freezing. Here is a link to Touchpad troubleshooting.
    The section marked TouchPad properties page on the left side has a restore defaults. Select that button if available.
    I hope this helps with the TouchPad,
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • My left and right click on the trackpad don't work.

    From reading a number of the posts here, it would seem that trackpads not working is an issue that Apple may need to look into. I have personally resorted to using a mouse and the trackpad as a touchpad. For all the finger gestures, my trackpad works fine, but it doesn't respond at all to the left or right click options. It clicks audibly, but neither responds. There were some posts about playing around with a PRAM (whatever that may be), but surely there must be a more definitive solution. Does anyone know if this is an issue that is being addressed by Apple or does anyone know of a permanent solution? I don't mind continue to use the external mouse, but it seems a shame that the trackpad malfunctions and there is no apparent solution; that's unlike an Apple product. Your input would be appreciated.

    This fixed it :
    "Solution:
    With the laptop open, turn it on to it's side. Repeatedly click the trackpad with a firm, but not excessive amount of force. Put the laptop on the other side and repeat.
    I can't explain why this works. Perhaps some amount of debris or dust has built up under there ? I went from not being able to click-drag without an excessive amount of pressure, back to a normal amount of pressure after doing this."

  • How can I cut and past on imac without a left and right click on mouse?

    Trouble cut and pasting on an imac since mouse has no right and left clicks...how can I highlight something and cut and paste somewhere else?

    Holding the Mouse button down and dragging across text should highlight it, and Command-C Command-V should allow you to copy/paste.

  • I am using the firefox on my laptop, I had my photoshop on and my setting for pressing left and right mouse button is "autoscroll", and everytime I left-right click a link, it automatically jump to my photoshop app

    vaio laptop, vista

    Two things that were not mentioned that might lead to
    *Are you syncing active tabs on two devices?
    *Is Auto-Sync selected on the mobile device in the Account Settings?

  • I used to be able to scroll with the button on my laptop (between left and right-click buttons) and now I can't

    there's a square button on my laptop between the right and left-click buttons which is meant to use to scroll down pages with. it worked before I upgraded, and now id doesn't. how can I change that? my laptop is an Acer from e-machines
    thanks!

    You may have switched on [http://kb.mozillazine.org/accessibility.browsewithcaret caret browsing].
    You can press press F7 (on Mac: fn + F7) to toggle caret browsing on/off.
    * Tools > Options > Advanced : General: Accessibility: [ ] "Always use the cursor keys to navigate within pages"
    * http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works

  • Adjusting Left And Right Balance for INPUT - SB Audigy 2

    Hi Guys,
    <SPAN class=52245242-27042005>I'm using an SB Audigy 2 ZS with the latest drivers. I realize that it is possible to adjust the left/right balance for speaker OUTPUT, but Is it possible to adjust the left/right balance for the inputs? I'm doing some recording and I want to set different input levels for the left and right side of the CD Digital In as well as the Aux Line In. So either either a way to control left/right input balance or seperate input levels for left/right would be helpful.
    <SPAN class=52245242-27042005>
    <FONT size=+0><SPAN class=52245242-27042005><SPAN class=52245242-27042005>Thanks in advance,
    <SPAN class=52245242-27042005>Steve

    Thanks but I need real time. If I use a mic for the right input and a seperate mic for the left input I want to be able to set the optimum recording level for each side/mic. If I just set the level for the louder of the 2 mics then the other mic level on the other side is set too low You would think that Creative could have included this as a software control.
    Also, if I record using the "Digital Input' and the 'Aux Line In" at the same time then you must select "Record What You Hear" from the Creative Control Panel. Both sources are mixed togther, if I could set the CD Digatl output to left side only then I could record CD Digital on the left side and Line Input on the right.
    I just wish the Audigy could do this as it would be a cheap software control, I don't won't to buy another soundcard.

  • Remove left and right margin when display portlets

    What is the best way to remove the left and right margin when display portlets?
    I found a file called \portalpages\dotnet\prod\src\com\plumtree\portalpages\browsing\myportal\/
    MyPortalContentView.cs
    But I do not see a place for the left and right margins. What is the correct place to modify these margins? (How about the top and bottom margins too?)
    See the green highlight?

    That's it yeah, seems to curve upwards at the sides. Dunno whether leaving a heavy book on it might sway it back into position?!
    I had the display upgraded when I bought it so presumed it could have been done whilst 'in operation'. Apart from that there's nothing wrong with it really, doubt it's something they would take it back on anyway.

  • Left and right mouse coding for games

    Hi
    Can anyone point me in the right direction on where to find actionscript 2/3 coding for left and right mouse clicks for gaming. I am a student and want to design a game that will use both left and right mouse clicks on a object that will give different results depending on which mouse click you had made.
    For example on a red object you click right, on a blue object you click left. Depending on how you clicked on a object will determine the next step in the code.
    Does this make sense?
    Cheers
    Beth

    I believe there is no method provided for isolating right clicks with a mouse in Flash.  The right click is reserved for pulling up a menu and there are no properties associated with it in the code.

Maybe you are looking for