brewboard, an opensource software keyboard [library]

Discussion in '3DS - Homebrew Development and Emulators' started by titegtnodI, Dec 10, 2014.

  1. titegtnodI
    OP

    titegtnodI Advanced Member

    Newcomer
    82
    67
    Nov 25, 2014
    Canada
    I wrote a very basic software keyboard for the 3DS. I'm going to make it look nicer later, for now it's functional. It uses textstuff for drawing the text, but that's easily changed to whatever you want.

    [​IMG]

    Setup
    1. Just follow the instructions to setup your development environment here.
    2. Copy or link "letters.h", "textstuff.h", and "textstuff.c" to your source directory.
    Credits
    • Anyone who's helped out with ctrulib
    • insaneKane - The base code for textstuff
    • titegtnodI - Keyboard code
     
    cynosura, Warft, filfat and 10 others like this.


  2. Ivan Garcia

    Ivan Garcia GBAtemp Regular

    Member
    130
    75
    Nov 8, 2014
    Madrid, Spain
    With this... you can make a "Pictochat" :D
     
    DinohScene likes this.
  3. YoshiInAVoid

    YoshiInAVoid GBAtemp Advanced Fan

    Banned
    560
    336
    Jan 10, 2011
    Wow, nice work! I'll try to implement this into 3DS Controller for the next release.
     
  4. titegtnodI
    OP

    titegtnodI Advanced Member

    Newcomer
    82
    67
    Nov 25, 2014
    Canada

    Thanks! I just checked out your 3DS Controller project, it looks really cool! If there's anything you'd like to see in the keyboard feel free too ask :3. I'll be randomly adding features as time goes on.
     
  5. Relys

    Relys Master of Computer Science

    Member
    863
    788
    Jan 5, 2007
    United States
    What about just using the keyboard system applet?
     
  6. tickle.my.pickle

    tickle.my.pickle GBAtemp Regular

    Member
    101
    30
    May 2, 2013
    United States
    irc client pls... :D
     
  7. titegtnodI
    OP

    titegtnodI Advanced Member

    Newcomer
    82
    67
    Nov 25, 2014
    Canada

    If that's in any shape or form something people would actually use I could write a basic one. I just figured it wouldn't be very useful on the 3DS haha.
     
    ztoben likes this.
  8. ztoben

    ztoben Member

    Newcomer
    46
    16
    Jan 14, 2014
    United States
    It might be a little bit of a novelty, but I actually think I would use it.
     
  9. tickle.my.pickle

    tickle.my.pickle GBAtemp Regular

    Member
    101
    30
    May 2, 2013
    United States
    I don't use smart phones... so i don't have access via portable devices... if you make one... i would totally use it...
     
  10. titegtnodI
    OP

    titegtnodI Advanced Member

    Newcomer
    82
    67
    Nov 25, 2014
    Canada
    Just an update, I added in an example and textstuff is now optional (except for the example).

    Offtopic: I'll probably look into writing a basic IRC client, don't get your hopes up though.

    Also I forgot to respond to Relys: Because AFAIK we can't use applets via the homebrew launcher right now, also it's always nice to have an OS alternative.
     
  11. nop90

    nop90 GBAtemp Maniac

    Member
    1,350
    2,035
    Jan 11, 2014
    Italy
    Rome
    Do you have an example for calling the swkbd applet and getting back the input text?
     
  12. DinohScene

    DinohScene Dino May Fire

    Member
    GBAtemp Patron
    DinohScene is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    15,594
    11,969
    Oct 11, 2011
    Antarctica
    В небо
    Yes please, pictochat clone <3
     
  13. titegtnodI
    OP

    titegtnodI Advanced Member

    Newcomer
    82
    67
    Nov 25, 2014
    Canada

    I have a friend who may be interested in doing that, I'll put it on the list.
     
    Margen67 and I pwned U! like this.
  14. I pwned U!

    I pwned U! GBAtemp Advanced Fan

    Member
    833
    1,116
    Jun 14, 2013
    United States
    Would it also be possible to make a 3DS homebrew app for the PictoSwap website so that it could run much more smoothly and we would not have to rely on the 3DS internet browser to use it?

    (or better yet, edit Swapnote to use a custom server to enable SpotPass again)
     
  15. filfat

    filfat Musician, Developer & Entrepreneur

    Member
    1,228
    856
    Nov 24, 2012
    Idk apparently its easier to just create it yourself than using prebuilt stuff... </sarcasm>
     
  16. Relys

    Relys Master of Computer Science

    Member
    863
    788
    Jan 5, 2007
    United States
    No, but I believe ctrulib has support for IPC between applets. Someone just needs to look into it.

    Edit: Ah, just read OPs reply.Thanks for the clarification.
     
  17. titegtnodI
    OP

    titegtnodI Advanced Member

    Newcomer
    82
    67
    Nov 25, 2014
    Canada
    Maybe, we'll look into it. For now we'll focus on a pictochat-like app. I'll put your suggestion on the list though.



    No need to be rude ... Show me an example using the "prebuilt stuff".

    Until then, we have this. Again, it's still nice to have an OS alternative.
     
    AlbertoSONIC likes this.
  18. nop90

    nop90 GBAtemp Maniac

    Member
    1,350
    2,035
    Jan 11, 2014
    Italy
    Rome
    I checked in ctrulib code:
    Code:
    Result APT_LaunchLibraryApplet(NS_APPID appID, Handle inhandle, u32 *parambuf, u32 parambufsize);
     
    //This should be used for launching library applets, this uses the above APT_StartLibraryApplet/APT_PrepareToStartLibraryApplet funcs + apt*Session(). parambuf is used for APT params input, when the applet closes the output param block is copied here. This is not usable from the homebrew launcher. This is broken: when the applet does get launched at all, the applet process doesn't actually get terminated when the applet gets closed.
    
    If Smealum can't make it work yet, a custom implementation is our only choice at the moment ;)
     
    filfat likes this.
  19. Relys

    Relys Master of Computer Science

    Member
    863
    788
    Jan 5, 2007
    United States

    Hmmm, so is it possible to even launch the applet (even though it will remain as a zombie process when closed)?
     
  20. Idaho

    Idaho GBAtemp Advanced Fan

    Member
    671
    402
    Oct 3, 2013
    France
    That's nice, I'd be stunned if we'd have an IRC client like hexchat that'd be using this keyboard ^^
     
    Margen67 likes this.