<commit_before>/*
 * Copyright (c) 2012-2015 <NAME> and individual contributors.
 * License: https://github.com/taylor001/crown/blob/master/LICENSE
 */

#pragma once

#include "types.h"
#include "math_types.h"

namespace crown
{

struct InputDevice
{
	/// Returns the name of the input device.
	const char* name() const;

	/// Returns whether the input device is connected and functioning.
	bool connected() const;

	/// Returns the number of buttons of the input device.
	uint8_t num_buttons() const;

	/// Returns the number of axes of the input devices.
	uint8_t num_axes() const;

	/// Returns whether the specified @a b button is pressed in the current frame.
	bool pressed(uint8_t i) const;

	/// Returns whether the specified @a b button is released in the current frame.<commit_msg>Fix docs<commit_after>/*
 * Copyright (c) 2012-2015 <NAME> and individual contributors.
 * License: https://github.com/taylor001/crown/blob/master/LICENSE
 */

#pragma once

#include "types.h"
#include "math_types.h"

namespace crown
{

/// Represents a generic input device.
///
/// @ingroup Input
struct InputDevice
{
	/// Returns the name of the input device.
	const char* name() const;

	/// Returns whether the input device is connected and functioning.
	bool connected() const;

	/// Returns the number of buttons of the input device.
	uint8_t num_buttons() const;

	/// Returns the number of axes of the input devices.
	uint8_t num_axes() const;

	/// Returns whether the specified @a b button is pressed in the current frame.
	bool pressed(uint8_t i) const;

	/// Returns whether the specified @a b button is released in the current frame.
{'fraction_non_alphanumeric': 0.10201588271227856, 'fraction_numerical': 0.01710445937690898, 'mean_word_length': 3.5754189944134076, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3361820', 'n_tokens_mistral': 503, 'n_tokens_neox': 467, 'n_words': 201}