10 March 2025

League Controller Progress Review

 League Dial Controller

 Our idea stems from our team's shared enjoyment of the game League of Legends. League of Legends is the most prominent MOBA in the gaming market, and has a combined player base of millions of players. This controller enables players to play the game using one hand, with each ability mapped to a setting on a dial. the whole thing is on a mouse-like device that is mapped to the game's cursor, allowing full gameplay using just one device rather than a mouse and keyboard.

 Pseudo Code:

Setup:
    Initialize mouse sensor
    Initialize dial input
    Initialize switch input
    Set default currentKey to Q (or any default key)
    Set previousDialPosition to initial dial value
    Initialize mouse movement interface (if using a library like Mouse.h)

Loop:
    // Handle mouse movement
    mouseX = Read mouseX sensor
    mouseY = Read mouseY sensor
    Move mouse to (mouseX, mouseY)

    // Read dial position (this could be a potentiometer or similar)
    dialPosition = Read dial input

    // Check if dial position has changed
    If dialPosition != previousDialPosition:
        Update currentKey based on dialPosition
        Update previousDialPosition to dialPosition

    // Read switch input (whether the key is activated or not)
    keyPressed = Read switch input

    // If switch is pressed, simulate pressing the selected key
    If keyPressed:
        Press the currentKey
    Else:
        Release the currentKey

    //Debounce
    Delay(10) 

 

Schematic and Sketch


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.