Code Monkey home page Code Monkey logo

forcefeedback-core-library's Introduction

ForceFeedback-core-library

This library contains code to process FFB input, output and feature reports. It supports all effects except CustomEffects. Code can handle two axis and 10 simultaneous effects. This library sits above your USB HID implementation. Library implements only FFB part of joystick. FFB part of HIDdescriptor is in Descriptor.txt.

To use this library you need to:

-pass output reports to the FfbOnUsbData

-on SET_FEATURE report id 5 use FfbOnCreateNewEffect

-on GET_FEATURE report id 6 use FfbOnPIDBlockLoad

-on GET_FEATURE report id 7 use FfbOnPIDPool

-on GET_REPORT report id 2 use FfbOnPIDStatus

-to get force for the actuator call FfbGetFeedbackValue. It ranges +/-255

-provide lib for sine and cosine functions in ffb_math.c

-provide lib for variable types (int32_t etc...)

The condition effects have not been tested at the moment.

p.s. I have a complete FFB library inside my VjoyWrapper repository written in C#

forcefeedback-core-library's People

Contributors

jakasimonic avatar

Watchers

 avatar

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.