<commit_before>{{
LameAudio Synthesizer
─────────────────────────────────────────────────
Version: 1.0
Copyright (c) 2013 LameStation LLC
See end of file for terms of use.

Authors: <NAME>
─────────────────────────────────────────────────
}}

'' LameControl? More like Game Control!

'' This library is a simple wrapper around the
'' buttons and joystick used by the LameStation
'' to both show how the controls work and make
'' managing controls easier.


CON

    J_U = 1 << 12
    J_D = 1 << 13
    J_R = 1 << 14
    J_L = 1 << 15
   
    SW1 = 1 << 24
    SW2 = 1 << 25
    SW3 = 1 << 26
     
VAR

    long controls

PUB Start

    dira[24..26]~
    dira[12..15]~
    
    
PUB Update
    controls := ina
    
PUB Menu
    return controls & SW1
    
PUB A
    return controls & SW2
    
PUB B
    return controls & SW3

PUB Left
    return controls & J_L    
    
PUB Right
    return controls & J_R

PUB Up
    return controls & J_U

PUB Down
    return controls & J_D<commit_msg>Added Any function for Press Any Key<commit_after>{{
LameAudio Synthesizer
─────────────────────────────────────────────────
Version: 1.0
Copyright (c) 2013 LameStation LLC
See end of file for terms of use.

Authors: <NAME>
─────────────────────────────────────────────────
}}

'' LameControl? More like Game Control!

'' This library is a simple wrapper around the
'' buttons and joystick used by the LameStation
'' to both show how the controls work and make
'' managing controls easier.


CON

    J_U = 1 << 12
    J_D = 1 << 13
    J_R = 1 << 14
    J_L = 1 << 15
   
    SW1 = 1 << 24
    SW2 = 1 << 25
    SW3 = 1 << 26
     
VAR

    long controls

PUB Start

    dira[24..26]~
    dira[12..15]~
    
    
PUB Update
    controls := ina
    
PUB Menu
    return controls & SW1
    
PUB A
    return controls & SW2
    
PUB B
    return controls & SW3
    
PUB Any
    return controls & (SW1+SW2+SW3)

PUB Left
    return controls & J_L    
    
PUB Right
    return controls & J_R

PUB Up
    return controls & J_U

PUB Down
    return controls & J_D


{'fraction_non_alphanumeric': 0.16471163245356793, 'fraction_numerical': 0.041544477028347994, 'mean_word_length': 2.45777027027027, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 5, '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': '6838621', 'n_tokens_mistral': 824, 'n_tokens_neox': 676, 'n_words': 254}