Fix trailing whitespace

This commit is contained in:
Scott Mansell 2020-01-07 12:52:05 +13:00 committed by GitHub
parent 21528c3e72
commit a8c33f4ef6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -412,17 +412,17 @@ evdevDevice::evdevDevice(const std::string& devnode) : m_devfile(devnode)
// Filter out interesting devices (see description below) // Filter out interesting devices (see description below)
m_interesting = num_motion_axis != 0 || num_axis >= 2 || num_buttons >= 8; m_interesting = num_motion_axis != 0 || num_axis >= 2 || num_buttons >= 8;
// On modern linux systems, there are a lot of event devices that aren't controllers. // On modern linux systems, there are a lot of event devices that aren't controllers.
// For example, the PC Speaker is an event device. Webcams sometimes show up as // For example, the PC Speaker is an event device. Webcams sometimes show up as
// event devices. The power button is an event device. // event devices. The power button is an event device.
//
// We don't want these showing up in the list of controllers, so we use this // We don't want these showing up in the list of controllers, so we use this
// heuristic to filter out anything that doesn't smell like a controller: // heuristic to filter out anything that doesn't smell like a controller:
// //
// More than two analog axis: // More than two analog axis:
// Most controllers have at least one stick. This rule will catch all such // Most controllers have at least one stick. This rule will catch all such
// controllers, while ignoring anything with a single axis (like the mouse // controllers, while ignoring anything with a single axis (like the mouse
// scroll-wheel) // scroll-wheel)
// //
// --- OR --- // --- OR ---
@ -433,16 +433,16 @@ evdevDevice::evdevDevice(const std::string& devnode) : m_devfile(devnode)
// only a few buttons, like the power button. Sometimes laptops have devices // only a few buttons, like the power button. Sometimes laptops have devices
// with 5 or 6 special buttons, which is why the threshold is set to 8 to // with 5 or 6 special buttons, which is why the threshold is set to 8 to
// match a NES controller. // match a NES controller.
// //
// --- OR --- // --- OR ---
// //
// Any Motion Axis: // Any Motion Axis:
// This rule is to catch any theoretical motion controllers with only a few // This rule is to catch any theoretical motion controllers with only a few
// buttons that the user might want to use as a controller. // buttons that the user might want to use as a controller.
// //
// This heuristic is quite loose. The user may still see weird devices showing up // This heuristic is quite loose. The user may still see weird devices showing up
// as controllers, but it hopefully shouldn't filter out anything they actually // as controllers, but it hopefully shouldn't filter out anything they actually
// want to use. // want to use.
} }
evdevDevice::~evdevDevice() evdevDevice::~evdevDevice()