Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

hornta/SFML-2.1-RAWINPUT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

This have been implemented in SFML since SFML/SFML#3057.

SFML-2.1-RAWINPUT

This is a windows implementation of raw mouse input. Raw mouse input is data given from directly from the HID, bypassing the OS.

I hope more people could port this to OSX or Linux as it has to be cross platform to go into SFML.

How to use it

sf::RenderWindow window(sf::VideoMode(1920, 1080, 32), "Title");

/*
 *	false(default): (no events are fired)
 *	true: Register raw input for mice(events are fired)
 */
window.setRelativeMouseMode(true);

You can toggle it anytime you want.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages