Permalink
![For For](/uploads/1/2/6/2/126245978/454689422.jpg)
![Appevent: Remote Mouse For Mac Appevent: Remote Mouse For Mac](/uploads/1/2/6/2/126245978/399765390.jpg)
Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
(Offline Sync) Data download is initiated when 'starting.app' event is. Apps with optional offline/disconnected mode on Apple Mac family of devices. The scrollbars are revealed on devices with the “pointer” input, such as mouse or stylus. Apr 20, 2016 Turn your iPhone or iPad into a wireless remote control for your Mac. Enjoy full control of your Mac while giving presentations, watching movies, listening to your favorite music and many more! Super fast, super easy, right from your mobile device!. FEATURES. Fully Simulated Mouse. M.
Sign up Find file Copy path
Cannot retrieve contributors at this time
/* |
Copyright (c) 2012, The Cinder Project, All rights reserved. |
This code is intended for use with the Cinder C++ library: http://libcinder.org |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that |
the following conditions are met: |
* Redistributions of source code must retain the above copyright notice, this list of conditions and |
the following disclaimer. |
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and |
the following disclaimer in the documentation and/or other materials provided with the distribution. |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND ANY EXPRESS OR IMPLIED |
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED |
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
POSSIBILITY OF SUCH DAMAGE. |
*/ |
#pragma once |
#include'cinder/Cinder.h' |
#include'cinder/app/Event.h' |
#include'cinder/Vector.h' |
namespacecinder { namespaceapp { |
//! Represents a mouse event |
classCI_API MouseEvent : public Event { |
public: |
MouseEvent() : Event() {} |
MouseEvent( const WindowRef &win, int initiator, int x, int y, unsignedint modifiers, float wheelIncrement, uint32_t nativeModifiers ) |
: Event( win ), mInitiator( initiator ), mPos( x, y ), mModifiers( modifiers ), mWheelIncrement( wheelIncrement ), mNativeModifiers( nativeModifiers ) |
{} |
//! Returns the X coordinate of the mouse event, measured in points |
intgetX() const { returnmPos.x; } |
//! Returns the Y coordinate of the mouse event, measured in points |
intgetY() const { returnmPos.y; } |
//! Returns the coordinates of the mouse event measured in points |
const ivec2& getPos() const { returnmPos; } |
//! Sets the coordinates of the mouse event, measured in points |
voidsetPos( const ivec2 &pos ) { mPos = pos; } |
//! Returns whether the initiator for the event was the left mouse button |
boolisLeft() const { return ( mInitiator & LEFT_DOWN ) ? true : false; } |
//! Returns whether the initiator for the event was the right mouse button |
boolisRight() const { return ( mInitiator & RIGHT_DOWN ) ? true : false; } |
//! Returns whether the initiator for the event was the middle mouse button |
boolisMiddle() const { return ( mInitiator & MIDDLE_DOWN ) ? true : false; } |
//! Returns whether the left mouse button was pressed during the event |
boolisLeftDown() const { return (mModifiers & LEFT_DOWN) ? true : false; } |
//! Returns whether the right mouse button was pressed during the event |
boolisRightDown() const { return (mModifiers & RIGHT_DOWN) ? true : false; } |
//! Returns whether the middle mouse button was pressed during the event |
boolisMiddleDown() const { return (mModifiers & MIDDLE_DOWN) ? true : false; } |
//! Returns whether the Shift key was pressed during the event. |
boolisShiftDown() const { return (mModifiers & SHIFT_DOWN) ? true : false; } |
//! Returns whether the Alt (or Option) key was pressed during the event. |
boolisAltDown() const { return (mModifiers & ALT_DOWN) ? true : false; } |
//! Returns whether the Control key was pressed during the event. |
boolisControlDown() const { return (mModifiers & CTRL_DOWN) ? true : false; } |
//! Returns whether the meta key was pressed during the event. Maps to the Windows key on Windows and the Command key on Mac OS X. |
boolisMetaDown() const { return (mModifiers & META_DOWN) ? true : false; } |
//! Returns whether the accelerator key was pressed during the event. Maps to the Control key on Windows and the Command key on Mac OS X. |
boolisAccelDown() const { return (mModifiers & ACCEL_DOWN) ? true : false; } |
//! Returns the number of detents the user has wheeled through. Positive values correspond to wheel-up and negative to wheel-down. |
floatgetWheelIncrement() const { returnmWheelIncrement; } |
//! Returns the platform-native modifier mask |
uint32_tgetNativeModifiers() const { returnmNativeModifiers; } |
enum { |
LEFT_DOWN = 0x0001, |
RIGHT_DOWN = 0x0002, |
MIDDLE_DOWN = 0x0004, |
SHIFT_DOWN = 0x0008, |
ALT_DOWN = 0x0010, |
CTRL_DOWN = 0x0020, |
META_DOWN = 0x0040, |
#if defined( CINDER_MSW ) |
ACCEL_DOWN = CTRL_DOWN |
#else |
ACCEL_DOWN = META_DOWN |
#endif |
}; |
protected: |
intmInitiator; |
ivec2 mPos; |
unsignedintmModifiers; |
floatmWheelIncrement; |
uint32_tmNativeModifiers; |
}; |
} } // namespace cinder::app |
Copy lines Copy permalink
Your device isn't recognized by your Mac
Follow these steps if your mouse, keyboard, or trackpad isn't recognized by your Mac.
Make sure that your wireless mouse, keyboard, or trackpad is turned on
The Magic Mouse and Magic Mouse 2 have a slide switch on the bottom of the device. Slide the switch to turn on the device. On the Magic Mouse, the green LED briefly lights up. On the Magic Mouse 2, green coloring is visible beneath the switch.
The Magic Keyboard, Magic Keyboard with Numeric Keypad, and Magic Trackpad 2 have a slide switch on the back edge of the device. Slide the switch to turn on the device (green coloring becomes visible). Earlier Apple Wireless Keyboard models have a power button on the right side of the device. Press the button and you see a green LED on the top of the device, near the button.
When you turn these devices on, they appear as Connected in the Bluetooth section of System Preferences and in the Bluetooth menu in your menu bar. If a device doesn't appear there, make sure it's charged or replace it batteries, and make sure it's been paired with your Mac.
Make sure that your device has been set up to work with your Mac
Learn how to pair your Magic Mouse 2, Magic Keyboard, Magic Keyboard with Numeric Keypad, Magic Trackpad 2—and earlier models of Apple wireless devices—with your Mac.
Make sure that Bluetooth is turned on
Use your Mac notebook's built-in trackpad or a USB mouse to choose Apple () menu > System Preferences. Then select Bluetooth and make sure that Bluetooth is turned on.
Refer to the table below for more information on determining the Bluetooth status. If the Bluetooth icon doesn't appear, or if the menu bar status continues to indicate that Bluetooth is off, restart your computer and then try to turn Bluetooth on again.
Bluetooth menu icon | Bluetooth status |
---|---|
Bluetooth turned on, but there are no devices connected to the Mac. See the Make sure that your wireless mouse, keyboard, or trackpad is turned on section of this article. | |
Bluetooth turned on and at least one wireless device is connected. | |
When this icon flashes, at least one wireless device has a low battery. Click the Bluetooth icon to identify the affected device, then recharge the device or replace its batteries. | |
Bluetooth is off. Click the Bluetooth icon using a USB mouse or built-in trackpad and select Turn Bluetooth On. | |
Bluetooth is offline or unavailable. Restart your Mac. If the Bluetooth status doesn’t change, disconnect all USB devices and restart your Mac again. |
Make sure that your devices are charged
![For For](/uploads/1/2/6/2/126245978/454689422.jpg)
Magic Mouse 2, Magic Keyboard, Magic Keyboard with Numeric Keypad, and Magic Trackpad 2 have built-in rechargeable batteries. You can charge these devices by connecting them to a Mac or a USB power adapter using a Lightning to USB Cable. For the fastest battery charging performance, be sure your device is switched on when connected to the Lightning to USB Cable.
To check the battery level of these devices, click the Bluetooth icon in your Mac's menu bar, then select your device by name. If the battery level of any device is low, recharge the device. If the device isn’t showing, make sure the device is turned using the steps outlined above.
Turn the device off and on
If your Apple wireless mouse, keyboard, or trackpad isn't recognized by your Mac after following the tips above, try turning the wireless device off, waiting a few seconds, and then turning it back on.
Your mouse or keyboard intermittently stops responding
Follow these steps if your mouse or keyboard sometimes stops responding temporarily.
Click or press a key
- Click the mouse or trackpad or press a key on the keyboard to reconnect the device to the computer. It might take a moment for the device to respond.
Check for signal interference
- Wireless networks that operate on 2.4GHz may cause interference. Move cordless phone base stations, microwave ovens, and other 2.4GHz electrical devices away from your Mac if you suspect interference.
- Keep wireless devices within 10 meters (approximately 30 feet) of your Mac.
- Avoid putting metal objects between your wireless device and your Mac.
Your mouse doesn't scroll up or down or side to side
If you can't use your mouse to scroll through a web page or document, see Mac Basics: Multi-Touch gestures to make sure your Gestures are configured correctly. You can also try adjusting your scrolling speed preferences.
Your mouse or trackpad doesn't track as expected
Apple Wireless Mouse, Magic Mouse, and Magic Mouse 2 can be used on most smooth surfaces. If tracking issues occur, try these options:
![Appevent: Remote Mouse For Mac Appevent: Remote Mouse For Mac](/uploads/1/2/6/2/126245978/399765390.jpg)
- Choose Apple menu > System Preferences, then select Mouse. Set the Tracking slider to adjust how fast the pointer moves as you move the mouse.
- Try using a different surface to see if the tracking improves.
- Turn the mouse over and inspect the sensor window. Use compressed air to gently clean the sensor window if dust or debris is present.
- If multiple Bluetooth wireless devices are in use nearby, try turning them off one at a time to see if the issue improves. Bandwidth intensive devices can affect tracking.
Learn more about what to do if your trackpad isn't tracking correctly.
Your keyboard has one or more keys that don't respond
Use the Keyboard Viewer to test whether the keyboard keys are responding correctly when they are pressed.
- Choose Apple menu > System Preferences, then select Language & Region.
- Click the Keyboard Preferences button.
- Click on the Input Sources tab.
- Make sure that the keyboard language that you use is listed on the left side. If it's not, click and choose from the languages that appear.
- Select the checkbox next to Show Input menu in menu bar.
- Click on the Keyboard tab, then select the checkbox next to Show keyboard and emoji viewers in menu bar.
- Choose Show Keyboard Viewer from the Input menu in the menu bar. The Keyboard Viewer showing the keyboard layout appears on your display.
- Type the key on the keyboard that doesn’t respond and see if the corresponding key highlights on the Keyboard Viewer. If it does, that key is functioning correctly.
If you enable the Mouse Keys feature, many keys might not respond as you expect. Here's how to turn off Mouse Keys:
- In OS X 10.8 or later, choose Apple menu > System Preferences. Click on Accessibility, then choose Mouse & Trackpad from the list on the left side. Then deselect the Enable Mouse Keys checkbox.
- In OS X 10.7.5 or earlier, choose Apple menu > System Preferences. Click on Universal Access, then select the Mouse & Trackpad tab. Then select the Off button next to Mouse Keys.
If issues with keys persist, try starting up your Mac in single-user mode to see whether a software issue is causing the problem.