libvirtualhid 18
Cross-platform C++ library for virtual HID devices.
profiles.hpp File Reference

Built-in virtual device profile declarations. More...

#include <optional>
#include <vector>
#include <libvirtualhid/types.hpp>
Include dependency graph for profiles.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  lvh
 Public libvirtualhid API namespace.
 

Functions

std::vector< DeviceProfilelvh::profiles::built_in_gamepad_profiles ()
 Get every built-in gamepad profile.
 
DeviceProfile lvh::profiles::dualsense ()
 Create the PlayStation DualSense-compatible gamepad profile.
 
DeviceProfile lvh::profiles::dualsense_bluetooth ()
 Create the Bluetooth PlayStation DualSense-compatible gamepad profile.
 
DeviceProfile lvh::profiles::dualsense_usb ()
 Create the USB PlayStation DualSense-compatible gamepad profile.
 
std::optional< DeviceProfilelvh::profiles::gamepad_profile (GamepadProfileKind kind)
 Look up a built-in gamepad profile by kind.
 
DeviceProfile lvh::profiles::generic_gamepad ()
 Create the generic HID gamepad profile.
 
DeviceProfile lvh::profiles::keyboard ()
 Create the generic keyboard profile.
 
DeviceProfile lvh::profiles::mouse ()
 Create the generic mouse profile.
 
DeviceProfile lvh::profiles::pen_tablet ()
 Create the generic pen tablet profile.
 
DeviceProfile lvh::profiles::switch_pro ()
 Create the Nintendo Switch Pro-compatible gamepad profile.
 
DeviceProfile lvh::profiles::touchscreen ()
 Create the generic touchscreen profile.
 
DeviceProfile lvh::profiles::trackpad ()
 Create the generic trackpad profile.
 
DeviceProfile lvh::profiles::xbox_360 ()
 Create the Xbox 360-compatible gamepad profile.
 
DeviceProfile lvh::profiles::xbox_one ()
 Create the Xbox One-compatible gamepad profile.
 
DeviceProfile lvh::profiles::xbox_series ()
 Create the Xbox Series-compatible gamepad profile.
 

Detailed Description

Built-in virtual device profile declarations.

Function Documentation

◆ built_in_gamepad_profiles()

std::vector< DeviceProfile > lvh::profiles::built_in_gamepad_profiles ( )

Get every built-in gamepad profile.

Returns
Built-in gamepad profiles.

◆ dualsense()

DeviceProfile lvh::profiles::dualsense ( )

Create the PlayStation DualSense-compatible gamepad profile.

Returns
Default DualSense-compatible device profile.

◆ dualsense_bluetooth()

DeviceProfile lvh::profiles::dualsense_bluetooth ( )

Create the Bluetooth PlayStation DualSense-compatible gamepad profile.

Returns
Bluetooth DualSense-compatible device profile.

◆ dualsense_usb()

DeviceProfile lvh::profiles::dualsense_usb ( )

Create the USB PlayStation DualSense-compatible gamepad profile.

Returns
USB DualSense-compatible device profile.

◆ gamepad_profile()

std::optional< DeviceProfile > lvh::profiles::gamepad_profile ( GamepadProfileKind kind)

Look up a built-in gamepad profile by kind.

Parameters
kindBuilt-in gamepad profile kind.
Returns
Matching profile, or std::nullopt when the kind is unknown.

◆ generic_gamepad()

DeviceProfile lvh::profiles::generic_gamepad ( )

Create the generic HID gamepad profile.

Returns
Generic gamepad device profile.

◆ keyboard()

DeviceProfile lvh::profiles::keyboard ( )

Create the generic keyboard profile.

Returns
Generic keyboard device profile.

◆ mouse()

DeviceProfile lvh::profiles::mouse ( )

Create the generic mouse profile.

Returns
Generic mouse device profile.

◆ pen_tablet()

DeviceProfile lvh::profiles::pen_tablet ( )

Create the generic pen tablet profile.

Returns
Generic pen tablet device profile.

◆ switch_pro()

DeviceProfile lvh::profiles::switch_pro ( )

Create the Nintendo Switch Pro-compatible gamepad profile.

Returns
Switch Pro-compatible device profile.

◆ touchscreen()

DeviceProfile lvh::profiles::touchscreen ( )

Create the generic touchscreen profile.

Returns
Generic touchscreen device profile.

◆ trackpad()

DeviceProfile lvh::profiles::trackpad ( )

Create the generic trackpad profile.

Returns
Generic trackpad device profile.

◆ xbox_360()

DeviceProfile lvh::profiles::xbox_360 ( )

Create the Xbox 360-compatible gamepad profile.

Returns
Xbox 360-compatible device profile.

◆ xbox_one()

DeviceProfile lvh::profiles::xbox_one ( )

Create the Xbox One-compatible gamepad profile.

Returns
Xbox One-compatible device profile.

◆ xbox_series()

DeviceProfile lvh::profiles::xbox_series ( )

Create the Xbox Series-compatible gamepad profile.

Returns
Xbox Series-compatible device profile.