<commit_before>/******************************************************************************
    SDLInput.h

    Input Events Handling

  Copyright (c) 2013 <NAME>

******************************************************************************/
#ifndef GAMELIB_SDLINPUT_HEADERS
#define GAMELIB_SDLINPUT_HEADERS

#include <iostream>
#include <string>

#include "SDL.h"

#include "gamelib.h"

class SDLInput
{
  public:
    SDLInput ( void );
    virtual ~SDLInput ( void );

    virtual void Input ( void );

    virtual void onExit ( void );
    virtual void onResize ( unsigned int width, unsigned int height );
    virtual void onRestore ( void ); // TODO
    virtual void onMinimize ( void ); // TODO
    virtual void onInputFocus ( void ); // TODO
    virtual void onMouseFocus ( void ); // TODO

    virtual void onKeyDown ( SDLKey key, SDLMod mod );
    virtual void onKeyUp ( SDLKey key, SDLMod mod );

    virtual void onMouseMotion ( unsigned int x, unsigned int y );
    virtual void onMouseWheel ( bool up, bool down ); // TODO
    virtual void onMouseLeftButtonDown ( unsigned int x, unsigned int y );<commit_msg>Updated Comments<commit_after>/******************************************************************************
    SDLInput.h

    Input Events Handling

  Copyright (c) 2013 <NAME>

******************************************************************************/
#ifndef GAMELIB_SDLINPUT_HEADERS
#define GAMELIB_SDLINPUT_HEADERS

#include <iostream>
#include <string>

#include "SDL.h"

#include "gamelib.h"

class SDLInput
{
  public:
    SDLInput ( void );
    virtual ~SDLInput ( void );

    virtual void Input ( void );

    virtual void onExit ( void );
    virtual void onResize ( unsigned int width, unsigned int height );
    virtual void onRestore ( void ); // TODO
    virtual void onMinimize ( void ); // TODO
    virtual void onInputFocus ( void ); // TODO
    virtual void onMouseFocus ( void ); // TODO

    virtual void onKeyDown ( SDLKey key, SDLMod mod );
    virtual void onKeyUp ( SDLKey key, SDLMod mod );

    virtual void onMouseMotion ( unsigned int x, unsigned int y );
    virtual void onMouseWheel ( bool up, bool down );
    virtual void onMouseLeftButtonDown ( unsigned int x, unsigned int y );
{'fraction_non_alphanumeric': 0.21520675855935972, 'fraction_numerical': 0.0035571365051133837, 'mean_word_length': 3.828326180257511, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3461040', 'n_tokens_mistral': 630, 'n_tokens_neox': 579, 'n_words': 212}