Homebrew [PoC]DaisyFace Demo

Arseface_TM

Board Game Dev
OP
Member
Joined
Sep 16, 2015
Messages
331
Trophies
0
Age
32
XP
306
Country
United States
Version 1.0.0 is now available for use

In order to take it any further I'd need to know what else people would want added, or if there are any other features they'd want. Are people comfortable with the circle pad or do you want d-pad inputs? What character set would you want for L+R. Is there a need for zL or zR?

Done List

- Piece of Crap Proof of Concept
- Add a display to the bottom screen showing which characters will be pressed
- Add R/L contexts for shift, ctrl, and symbol
- Make it a library
- Added icon to demo

To do List

- Credit people for things
- Make a moving @ demo with shamelessly stolen DoomRL music to expose my true motive
- Other unlikely things

Release Version 1.0 uploaded

Features

A simply typing application that doesn't save

4EdlRz5.jpg
[/screenshot]
 

Attachments

  • DaisyLib1.0.0.zip
    339.4 KB · Views: 167
Last edited by Arseface_TM,
  • Like
Reactions: 730 and teampleb

machinamentum

Well-Known Member
Member
Joined
Jul 5, 2015
Messages
163
Trophies
0
XP
549
Country
United States
Why does the source use the BIT macro for button checking? ctrulib provides predefined enums for checking individual bits/buttons. Using the BIT macro just makes the code harder to read.

Characters should be sent back through a user-defined callback as this is how most keyboard libraries handle it. Take a look at GLFW's keyboard API
 
Last edited by machinamentum,

Arseface_TM

Board Game Dev
OP
Member
Joined
Sep 16, 2015
Messages
331
Trophies
0
Age
32
XP
306
Country
United States
Screenshots.
It's a black screen with letters on it. It's a proof of concept of a library that will be used for a demo of a prototype of a port of a game.

Why does the source use the BIT macro for button checking? ctrulib provides predefined enums for checking individual bits/buttons. Using the BIT macro just makes the code harder to read.

Characters should be sent back through a user-defined callback as this is how most keyboard libraries handle it. Take a look at GLFW's keyboard API
I just looked at the input example in ctrulib and it used BIT. Didn't know there were enums, that'll make things way easier.

I will also work on making a callback thingy.
 

DogParty

Well-Known Member
Member
Joined
Sep 15, 2015
Messages
172
Trophies
0
Age
32
XP
908
Country
United States
So is this going to be a library for emulated keyboard input based on button combinations? I've only glanced over the source for a little.
 

Arseface_TM

Board Game Dev
OP
Member
Joined
Sep 16, 2015
Messages
331
Trophies
0
Age
32
XP
306
Country
United States
So is this going to be a library for emulated keyboard input based on button combinations? I've only glanced over the source for a little.
Yup. The idea is to have it work like Steams Big Picture Daisy Wheel, while being geared towards roguelike controls.
 

Arseface_TM

Board Game Dev
OP
Member
Joined
Sep 16, 2015
Messages
331
Trophies
0
Age
32
XP
306
Country
United States
So I've been at this for about a day now and I can't get getKeyInput() to return a char. Any pointers would be appreciated.
 

Attachments

  • DaisyLib0.3.zip
    328.2 KB · Views: 138

machinamentum

Well-Known Member
Member
Joined
Jul 5, 2015
Messages
163
Trophies
0
XP
549
Country
United States
So I've been at this for about a day now and I can't get getKeyInput() to return a char. Any pointers would be appreciated.
Change
Code:
printf(daletter);
to
Code:
printf("%c\n", daletter);
%c is a format specifier for printf that tells it to print just a single char.

Also, change chr = '\0' to chr = 0. '\0' returns as an ascii zero which makes it hard to check if you intended to return ascii zero or not. Other than that it seems to be working OK.

EDIT: also I changed
Code:
char letters[144] = {"abc8def9ghi6jkl3mno2pqr1stu4vwx7yz05" + // 0
                      "ABC8DEF9GHI6JKL3MNO2PQR1STU4VWX7YZ05" +   // 1
                      "123456789012345678901234567890123456" + // 2
                      "123456789012345678901234567890123456"}; // 3
to
Code:
char letters[144] = {"abc8def9ghi6jkl3mno2pqr1stu4vwx7yz05"  // 0
                      "ABC8DEF9GHI6JKL3MNO2PQR1STU4VWX7YZ05"  // 1
                      "123456789012345678901234567890123456"  // 2
                      "123456789012345678901234567890123456"}; // 3
Notice the lack of plus symbols.
 
Last edited by machinamentum,
  • Like
Reactions: Arseface_TM

Arseface_TM

Board Game Dev
OP
Member
Joined
Sep 16, 2015
Messages
331
Trophies
0
Age
32
XP
306
Country
United States
Super Useful Stuff
Thanks a bunch. I was able to fix it up a lot thanks to that.


Alrighty, I edited to OP to include the newest build, which works.

Features:
Displays inputs

a-z 0-9
A-Z 0-9 (hold L)
symbols and tab/backspace/new line/space(hold R)
Junk numbers(hold L+R)

Types things. Doesn't save.
 

Arseface_TM

Board Game Dev
OP
Member
Joined
Sep 16, 2015
Messages
331
Trophies
0
Age
32
XP
306
Country
United States
Version 1.0.0 is out.

Made it a library.
Added wheel and input displays.
Added a picture of it working.

Any feedback on how usable it is?

I'll work on prepping a "roguelike" demo.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: Also nice. Never really watched Fallout on Prime, but sounds like a good show. +1