Coder Social home page Coder Social logo

miouyouyou / simple-gl-evdev Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 1.0 229 KB

A not-so simple DRM / Evdev / OpenGL ES 2.x moving cursor example

License: MIT License

CMake 1.51% GLSL 3.05% C 86.92% Ruby 8.52%
evdev gles gl opengl drm kms mouse cursor example

simple-gl-evdev's Introduction

Tipping

Pledgie ! Tip with Altcoins

About

A not-so-small example showing how to use DRM (KMS), OpenGL ES 2 and Evdev to control a software cursor.

The point is to show how to capture input with Evdev, and show the results in an DRM-driven OpenGL application.

Software cursors are inherently bad, as they're limited by the current application refresh rate, but are still nice when it comes to show input feedback.

Requirements

  • CMake
  • DRM (kernel drivers, libraries and development headers)
  • Evdev (kernel drivers, libraries and development headers)
  • GBM (libraries and development headers)
  • OpenGL ES 2.x (drivers, libraries and development headers)
  • A user that has the rights to read raw input data from Mouse input node.

Build

To build this project, do something like :

cd /tmp
git clone https://gitlab.com/Miouyouyou/simple-gl-evdev
mkdir build-glev
cmake ../simple-gl-evdev
make

You can then run ./Program to run the program. If the program complains about a missing mouse, check that a mouse is clearly plugged in and that your user can read raw input data, from the /dev/input/ node representing your mouse. You can also run the program as root, but this is ill-advised.

Thanks to

License

MIT

simple-gl-evdev's People

Contributors

miouyouyou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

frink

simple-gl-evdev's Issues

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.