HBKBLib - A 3DS Keyboard Library

Discussion in '3DS - Homebrew Development and Emulators' started by jbr373, Sep 17, 2015.

  1. jbr373
    OP

    jbr373 Member

    Newcomer
    18
    146
    Aug 17, 2015
    Gambia, The
    Hello everyone!

    Today I'm showing you my first 3DS Project, the HBKB (HomeBrew KeyBoard) Library.
    This Library is written in C++ and is intended for pretty much every Program designed around Keyboards, like Web Browsers and File Explorers.

    The Keyboard looks like this:
    [​IMG]
    [​IMG]

    If you include this Library in your Project, you'll be able to use the Keyboard with these 3 simple functions:
    HBKB_CallKeyboard(touchPosition touch); = Call Keyboard (Write Graphics, check User Touch Position)
    HBKB_CheckKeyboardInput() = Returns a std::string with the Input made by the User
    HBKB_Clean() = Reset Keyboard

    You can find more in the ReadMe File. Also included is a little Demo Program which shows how to use the Library. This .zip includes the Library Source Code, as well as the Demo Source Code.
    I hope you find this Release helpful!

    Compilation:
    In case you don't have your DevkitPro installed in /usr/local/, you need to comment that out in the Makefile. The First 2 Lines, to be exactly.

    Also, you can find a already compiled Version of the Library in the Source for the Demo Application, in case you get issues with compilation. The Library is in the "hbkb" Folder in the Demo Source.

    ##
    # UPDATE
    ##

    I updated the Library to Version 1.0.4.
    This Update fixes an Issue with Key Spamming and Input Accuracy. Sorry if you had issues with it.
     

    Attached Files:

    Last edited by jbr373, Sep 18, 2015
    pandavova, emuashui, cearp and 33 others like this.


  2. Rinnegatamante

    Rinnegatamante GBAtemp Psycho!

    Member
    3,127
    3,260
    Nov 24, 2014
    Italy
    Bologna
    I'll definitely going to change current lpp-3ds keyboard with this one, thanks for the release.
     
    Ricken, Seriel, CeeDee and 6 others like this.
  3. Tjessx

    Tjessx GBAtemp Maniac

    Member
    1,156
    508
    Dec 3, 2014
    Belgium
    This could have saved me a lot of work,
    Glad someone did this!
    This will be useful
     
    Ptrk25, WeedZ, WhoAmI? and 2 others like this.
  4. Helreizer543

    Helreizer543 Member

    Newcomer
    49
    23
    Nov 24, 2014
    United States
    I love it :yay:. Good Job!
    I hate to Edit but nevermind
     
    Last edited by Helreizer543, Sep 17, 2015
  5. Nintendo Fanboy

    Nintendo Fanboy GBAtemp Maniac

    Member
    1,014
    388
    Mar 6, 2015
    United States
    In Los Santos, GTA: San Andreas.
    How do I compile stuff?
     
  6. Helreizer543

    Helreizer543 Member

    Newcomer
    49
    23
    Nov 24, 2014
    United States
    I wanted to add a little something for users that are trying to compile the library on windwos.
    1. comment out the first 2 lines in the make file if your ctrulib is installed in the default location.
    2. In the download rename, the folder "Library Source" to just "Library".
    After that the library should compile.
     
  7. jbr373
    OP

    jbr373 Member

    Newcomer
    18
    146
    Aug 17, 2015
    Gambia, The
    Glad to see you guys like it :)
    And thanks Helreizer543, I forgot to remove that from the Makefile, I'll update the OP. There is a compiled version of the Library included in the Source for the Demo Application, in case someone wants to skip the Compilation or has issues with it.
     
  8. suloku

    suloku GBAtemp Advanced Fan

    Member
    862
    491
    Apr 28, 2008
    I can't wait to see this in ctrxplorer!
     
    VegaRoXas likes this.
  9. geocool

    geocool Advanced Member

    Newcomer
    54
    8
    Jul 31, 2008
    Greece
    Athens
    Very nice. I was going to implement a keyboard library for my game engine but I may use this one now.
     
  10. The Real Jdbye

    The Real Jdbye Always Remember 30/07/08

    Member
    GBAtemp Patron
    The Real Jdbye is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    11,418
    4,737
    Mar 17, 2010
    Norway
    Alola
    Simple, easy and clean. I like it. I especially like that it doesn't waste any space on the bottom screen, but is made to maximize the size of the buttons to make them easier to press.
    If/when I get a good idea and decide to make a 3DS homebrew, I'll be sure to use this. Which may never happen, but you never know :P
     
  11. jbr373
    OP

    jbr373 Member

    Newcomer
    18
    146
    Aug 17, 2015
    Gambia, The
    Found a Bug and updated the Library. In case you had any issues with Keys being entered too many times and being unable to tap the same Key twice, this Update fixes it :)
     
    Tomato Hentai, suloku and lemanuel like this.
  12. Helreizer543

    Helreizer543 Member

    Newcomer
    49
    23
    Nov 24, 2014
    United States
    Have you ever thought of having a github?
     
    Rinnegatamante likes this.
  13. Tjessx

    Tjessx GBAtemp Maniac

    Member
    1,156
    508
    Dec 3, 2014
    Belgium
    Github would be very heandy
     
  14. lolzvid

    lolzvid GBAtemp Regular

    Member
    148
    115
    Dec 26, 2014
    Brazil
    Sorry for bumping this thread, but is there a command similar to "scanf"? It would help a lot when making apps with a lot of usage of the keyboard ;)
     
  15. GoodCookie88

    GoodCookie88 rekt em skrubs

    Member
    931
    317
    Oct 1, 2015
    United States
    How do I use this? PS:I'm a noob
     
  16. filfat

    filfat Musician, Developer & Entrepreneur

    Member
    1,228
    856
    Nov 24, 2012
    How is this code licensed? MIT? GPL?
    :)
     
  17. cpasjuste

    cpasjuste GBAtemp Fan

    Member
    440
    638
    Aug 27, 2015
    France
    Nice idea and work jbr373. I'll probably use it in my next project :)
     
  18. Chrisser_75

    Chrisser_75 GBAtemp Regular

    Member
    256
    107
    Dec 12, 2014
    Germany
    Germany
    Could someone test it if it work? :)

    HBKBLib: iDroid Theme-Mod

    Description:
    A modern iOS 8 / Lillipop keyboard theme for @jbr373's HBKBLib (Ver. 1.0.4)

    Preview:
    [​IMG]
    TO DO:
    It would be nice if someone could implement the HBKBLib, with this keyboard layout and give me a report. :)
    done by: @Shadowtrance thx


    Graphics:
    Download here!

    or Dropbox
    [​IMG]
     

    Attached Files:

    Last edited by Chrisser_75, Oct 23, 2015
  19. Shadowtrance

    Shadowtrance GBAtemp Addict

    Member
    2,482
    1,513
    May 9, 2014
    Hervey Bay, Queensland
    Yep it works, and looks pretty good :)
    How do we get the X and Tick to not exit the homebrew and instead have the tick act like enter and the X act like... umm i don't know, something else lol?

    [​IMG]
     
    Last edited by Shadowtrance, Oct 23, 2015
    Chrisser_75 likes this.
  20. Chrisser_75

    Chrisser_75 GBAtemp Regular

    Member
    256
    107
    Dec 12, 2014
    Germany
    Germany
    Thanks! :D
    E.g. change the x-function to an enter-function, place the "Enter"-Button on the right and the left button exit the homebrew.
    [__exit__] & [__enter__] button? :)