Git Product home page Git Product logo

Comments (4)

Grant1219 avatar Grant1219 commented on August 17, 2024 1

You are awesome.
I have been moving and just had some time to come back and look at this, and it's already done!

from gwork.

billyquith avatar billyquith commented on August 17, 2024

Not sure why char is using Allegro unichar. Looks like it should use the keycode.

case ALLEGRO_EVENT_KEY_CHAR:
    return m_eventListener->InputCharacter(event.keyboard.unichar);

case ALLEGRO_EVENT_KEY_DOWN:
case ALLEGRO_EVENT_KEY_UP:
    {
        bool bPressed = (event.type == ALLEGRO_EVENT_KEY_DOWN);

        if (event.keyboard.keycode
            && bPressed
            && event.keyboard.keycode >= 'a'
            && event.keyboard.keycode <= 'z')
        {
            return m_eventListener->InputCharacter(event.keyboard.keycode);
        }

        const unsigned char iKey = TranslateKeyCode(event.keyboard.keycode);
        return m_eventListener->InputKey(iKey, bPressed);
    }

from gwork.

billyquith avatar billyquith commented on August 17, 2024

Might also be worth having a poke around in the GWEN issues list and PR history. GWEN has quite a few bugs.

from gwork.

billyquith avatar billyquith commented on August 17, 2024

This should be fixed now.

from gwork.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.