Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Vogtinator

Pages: 1 ... 9 10 [11] 12 13 ... 83
151
TI-Nspire / Re: TI-Nspire emulator
« on: November 22, 2014, 06:17:57 pm »
I've been touching the keymap because I wasn't able to use the calculator at all. I could add the remaining keys to the map if you want me to. What do you suggest for the special keys? F1-F12? Alt? Ctrl? ...
That's the problem. What about "easy", "normal" keys like (?
You can't assign it to "(" on the keyboard as it's Shift-8. (or Shift-9 for qwerty) and that means shift is active.
Maybe distinguish between left and right shift?

Quote
It would be very nice to detect mouse over the Lcd widget and send it to the emulator...
That's working already (LMB: touch, RMB: click), if you try pyWrite or crafti. Only the OS doesn't like it.

152
TI-Nspire / Re: TI-Nspire USB serial breakout boards
« on: November 22, 2014, 06:06:16 pm »
Why "another"? Serial is only accessible via the dock connector.

153
TI-Nspire / Re: TI-Nspire emulator
« on: November 22, 2014, 05:00:19 pm »
Hm, what about Qml/Qt Quick? It seems to be perfect for this, it supports SVG natively and makes design relatively easy.
Ah, maybe. Cool then. I have never used it, so I didn't think about it.
As long as it still works on all platform without adding much size overhead (?)
Two seperate modules actually, one of them is WebKit's JavaScriptCore IIRC...

154
TI-Nspire / Re: TI-Nspire emulator
« on: November 22, 2014, 04:53:08 pm »
Anyway, back to the code. How should the keymap be implemented? I thought about a direct mapping of characters, so to type a ( you just have to type (. For {, { and so on.
Yeah, I think it would be a good idea. But we obviously still need buttons, too (for nspire-specific keys...)
When the core stuff are done, a skin-based thing (well, at least, a keyboard that looks like the real one) would be good too, like what KarmTI does (or to a lesser extent, nRemote).
I looked at Qt and frame/headless windows (such that custom window shape/frames could be done for the skin-based interface, if that's the plan) and it looked relatively easy (3-4 lines of code in mainwindow actually, for making the window "custom", with transparent background etc.). I think I have the details bookmarked somewhere...
Hm, what about Qml/Qt Quick? It seems to be perfect for this, it supports SVG natively and makes design relatively easy.

Quote
The downside to this is that the shift key can't be controlled anymore. What do you think about that?
Hmm. Is there any specific application of this where it could be an annoyance ?
But once again, the mapping could be temp. disabled with an option, too... :P
Yeah, only double the work...

Quote
Quote
Oh, so that's what the automatic subscription was about.... :P
Did you get a message? If antonio hadn't posted here, I wouldn't know about the accident..

Got this:
Spoiler For Spoiler:
Quote
GitHub <[email protected]>
14:35

Hey there, we're just writing to let you know that you've been automatically subscribed to a repository on GitHub.

    nspire-emus/nspire-emu created by Vogtinator
    Community emulator of TI nspire handhelds
    https://github.com/nspire-emus/nspire-emu

You'll receive notifications for all issues, pull requests, and comments that happen inside the repository. If you would like to stop watching this repository, you can manage your settings here:

    https://github.com/nspire-emus/nspire-emu/subscription

You can unwatch this repository immediately by clicking here:

    https://github.com/nspire-emus/nspire-emu/unsubscribe_via_email/....

You were automatically subscribed because you've been given push access to the repository.

Thanks!
So they notify you about repo creation, but not deletion, wtf.

155
TI-Nspire / Re: TI-Nspire emulator
« on: November 22, 2014, 03:03:59 pm »
Let's forget about that (and your doublepost). When I read your message I just laughed really badly xD
It's not really bad to delete an upstream repository as someone will have a working copy with git history and thus every branch can be restored.
But still, it's not a bad idea to check everything twice before deleting...

Anyway, back to the code. How should the keymap be implemented? I thought about a direct mapping of characters, so to type a ( you just have to type (. For {, { and so on.
The downside to this is that the shift key can't be controlled anymore. What do you think about that?

Quote
Oh, so that's what the automatic subscription was about.... :P
Did you get a message? If antonio hadn't posted here, I wouldn't know about the accident..

156
TI-Nspire / Re: GDB debugging on HW?
« on: November 22, 2014, 11:08:04 am »
If the usb gadget api functions were known it'd be possible, but for now there are only the usbd_ functions, which don't support gadget mode, do they?
Otherwise it would be easy to implement the MTP protocol for easier file transfer as well.

157
TI-Nspire / GDB debugging on HW?
« on: November 22, 2014, 09:55:42 am »
So, as there is gdbstub in nspire_emu and OCD.
I thought about combinging these two and support native GDB debugging on calc either over serial or USB with NavNet and libti*/libnspire
Would there be interest in this? If yes, USB or serial? Both have some downsides.

158
TI-Nspire / Re: TI-Nspire USB serial breakout boards
« on: November 22, 2014, 07:41:37 am »
Hi, nice to see you here again :D
I'd definitely order one.

Is is possible to connect the rest of the dock connector pins to some 0.1 inch headers? That could be very useful for some experiments with SDIO, SPI and such.
Some easily accessable traces to solder on would be nice, too.


159
Calculator C / Re: Getting touchpad coordinates
« on: November 21, 2014, 01:50:48 pm »
May I ask what for, exactly? If you need to touch a certain place for instance, you'll never get it right first try.
The only application for absolute values I can imagine for now is a direct mapping of the touched position to a position on another plane, such as the screen
and for those a touchpad is just the wrong kind of input device. Especially the lower bits in the X and Y registers are noisy as the OS switches filtering off (via I²C when booting).

160
Calculator C / Re: Getting touchpad coordinates
« on: November 21, 2014, 01:09:26 pm »
Quote
The touchpad code for nKaruga is in Player.cpp IIRC. Also, the touchpad needs "initialization", which is done at the start of main.
Basically, you "initialize" the touchpad by reading HW constants from it (you'll need them). You only do that once, since they are constants. When that's done, read the touchpad at any time with touchpad_scan.
The touchpad doesn't need initialization and the constants are actually fixed and the same everywhere, so you can completely skip that. (Anyway, only the relative coordinates are interesting, as touchpads are generally not used to get absolute coordinates, the way TI uses the touchpad to replace arrow keys is really annoying)

161
Calculator C / Re: Getting touchpad coordinates
« on: November 21, 2014, 09:07:05 am »
It's fairly simple using the touchpad_scan function:
https://github.com/Vogtinator/pyWrite/blob/master/cursortask.cpp#L17

162
Calculator C / Re: How to get input from user in ndless sdk ?
« on: November 20, 2014, 05:12:53 pm »
nspire-tools in in ndless-sdk/bin

163
Calculator C / Re: How to get input from user in ndless sdk ?
« on: November 20, 2014, 06:34:38 am »
Then your PATH isn't set up correctly.

164
Calculator C / Re: How to get input from user in ndless sdk ?
« on: November 20, 2014, 06:16:30 am »
Quote
Already try and it didn't open any thing.
Then please upload the generated file.

Quote
Can you write a helloworld prog in c++ and mention the steps from terminal or using an exist CPP file
I am very sorry about asking alot

Code: [Select]
echo "int main() { return 0; }" > main.cpp
nspire-tools new test
make
Done. The program does nothing, though.

165
Calculator C / Re: How to get input from user in ndless sdk ?
« on: November 20, 2014, 05:04:12 am »
Quote
in the sample example the tns file obtained but not working on the emulator
Try the .prg.tns file.

Quote
When I try to make a prog. and write : nspire-tools new <main> "main is my program name that error appear
Leave the "<>" out.

Pages: 1 ... 9 10 [11] 12 13 ... 83