<commit_before>#pragma once
#include "Input.h"
 
using namespace Input::VirtualInput; 

namespace Input
{
	namespace Joystick
	{ 
		class JoystickController : public IController
		{
		public:
			virtual InputInfo Poll();
			virtual void DebugDraw();
			int HardwareID();
			void HardwareID(int val);
		private:
			int hardwareID;
		};  
	} <commit_msg>added joystick button state and info structs<commit_after>#pragma once
#include "Input.h"
 
using namespace Input::VirtualInput; 

namespace Input
{
	namespace Joystick
	{ 
		typedef unsigned char JoystickButton;

		class JoystickController : public IController
		{
		public:
			virtual InputInfo Poll();
			virtual void DebugDraw();
			int HardwareID();
			void HardwareID(int val);
		private:
			int hardwareID;

			enum JoystickButtonState
			{
				BUTTON_NOT_FOUND = -2,
				BUTTON_NOT_MAPPED = -1, 
				BUTTON_DOWN = 1, //same as what glfw returns
				BUTTON_UP = 0 //same as what glfw returns
			};

			struct JoystickButtonInfo
			{
				JoystickButtonInfo(){}
				JoystickButtonInfo(JoystickButtonState state, JoystickButton button):
					state(state),
					button(button)
				{ } 
				JoystickButton button; //physical button
				JoystickButtonState state; //state of the button
			}; 
		};  

		
	} 
{'fraction_non_alphanumeric': 0.08492063492063492, 'fraction_numerical': 0.0031746031746031746, 'mean_word_length': 3.3482758620689657, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '5883763', 'n_tokens_mistral': 491, 'n_tokens_neox': 383, 'n_words': 109}