Giter Club home page Giter Club logo

ofxmanymouse's Introduction

openFrameworks wrapper addon for Ryan C. Gordon's manymouse library.

With this addon you can easily read values from multiple mouse or trackball devices.

Instructions:

  1. Add the ofxManyMouse to your project

  2. #include "ofxManyMouse.h" in ofApp.h

  3. let ofApp extend ofxManyMouse like this:

class ofApp : public ofBaseApp, public ofxManyMouse { 
  1. Add one or more of the following functions to ofApp.h
void mouseMoved(int device, int axis, int value);
void mouseMovedAbsolute(int device, int axis, int pos); //new and not tested yet
void mouseScroll(int device, int axis, int value);
void mousePressed(int device, int button);
void mouseReleased(int device, int button);
void mouseDisconnect(int device);
  1. Implement the function(s) in testApp.cpp
void ofApp::mouseMoved(int device, int axis, int value) {
  //do something with the values
}

Good luck!

ofxmanymouse's People

Contributors

companje avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ofxmanymouse's Issues

mouseScroll not firing

Hi,
I can't seem to get the mousescroll event to fire? Do I need to update the GLUT like I've seen in other solutions?

Out-of-line defintion of "mouseMoved"

Hello,
Thank you very much for the addon, however, when I was tryin to run it on xCode with oF v0.9.2, I have an error on void ofApp::mouseMoved(int device, int axis, int value){} in my ofApp.cpp where it said "Out-of-line definition of 'Moved' does not match any declaration in 'ofApp'". It also leads to 2 other errors of the use of undeclared identifier 'x' and 'y'. May I ask what shall I do to solve it please?

Cheers,
Karen

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.